DJI Mobile SDK Documentation

      class IARManager

      interface IARManager 
      Package:dji.open.pilot.client.interfaces
      Description:

      AR management class. Note: First, upload the configuration to the Pilot, generate ARInfo using the configuration ID, and then set the ARInfo to the Pilot. One configuration can correspond to multiple ARInfo icons. SVG is supported, but there are requirements for the SVG file fields. For details, please refer to the Sample.

      Supported since MSDK 5.20.1

      Class Members:
      method queryARPointConfig
      void queryARPointConfig(@NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPointConfig>> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Query AR point configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPointConfig>> callbackResult callback.
      method uploadARPointConfig
      void uploadARPointConfig(@NonNull ARPointConfig config, @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Upload AR point configuration. Before uploading AR points, you need to set the AR point configuration. One configuration can correspond to multiple points.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPointConfig configAR point configuration.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callbackResult callback.
      method queryARPointInfo
      void queryARPointInfo(@NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPointInfo>> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Query AR point information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPointInfo>> callbackResult callback. The returned AR point altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      method uploadARPointInfo
      void uploadARPointInfo(@NonNull ARPointInfo info, @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Upload AR point information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPointInfo infoAR point information. The point altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callbackResult callback.
      method updateARPointInfo
      void updateARPointInfo(@NonNull ARPointInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Update AR point information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPointInfo infoAR point information. The point altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method deleteARPointInfo
      void deleteARPointInfo(@NonNull ARPointInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Delete AR point information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPointInfo infoAR point information. The point altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method queryARLineInfo
      void queryARLineInfo(@NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARLineInfo>> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Query AR line information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARLineInfo>> callbackResult callback. The returned altitude of each vertex of the AR line is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      method uploadARLineInfo
      void uploadARLineInfo(@NonNull ARLineInfo info, @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Upload AR line information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARLineInfo infoAR line information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callbackResult callback.
      method updateARLineInfo
      void updateARLineInfo(@NonNull ARLineInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Update AR line information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARLineInfo infoAR line information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method deleteARLineInfo
      void deleteARLineInfo(@NonNull ARLineInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Delete AR line information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARLineInfo infoAR line information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method queryARPolygonInfo
      void queryARPolygonInfo(@NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPolygonInfo>> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Query AR polygon face information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARPolygonInfo>> callbackResult callback. The returned altitude of each vertex of the AR polygon is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      method uploadARPolygonInfo
      void uploadARPolygonInfo(@NonNull ARPolygonInfo info, @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Upload AR polygon face information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPolygonInfo infoAR polygon information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callbackResult callback.
      method updateARPolygonInfo
      void updateARPolygonInfo(@NonNull ARPolygonInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Update AR polygon face information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPolygonInfo infoAR polygon information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method deleteARPolygonInfo
      void deleteARPolygonInfo(@NonNull ARPolygonInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Delete AR polygon face information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARPolygonInfo infoAR polygon information. The altitude of each vertex is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method queryARCircleInfo
      void queryARCircleInfo(@NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARCircleInfo>> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Query AR circle information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWithParam<List<ARCircleInfo>> callbackResult callback. The returned altitude of the AR circle center is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      method uploadARCircleInfo
      void uploadARCircleInfo(@NonNull ARCircleInfo info, @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Upload AR circle information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARCircleInfo infoAR circle information. The center altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<String> callbackResult callback.
      method updateARCircleInfo
      void updateARCircleInfo(@NonNull ARCircleInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Update AR circle information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARCircleInfo infoAR circle information. The center altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method deleteARCircleInfo
      void deleteARCircleInfo(@NonNull ARCircleInfo info, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Delete AR circle information.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARCircleInfo infoAR circle information. The center altitude is the absolute ellipsoidal height (HAE, above the WGS-84 ellipsoid), in meters; extrusionAnchor is a relative extrusion offset vector (its longitude/latitude/altitude components are relative extrusion amounts along the east-west, north-south, and vertical directions, in meters), not an absolute coordinate.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      method enableARRadar
      void enableARRadar(@NonNull ARRadarConfig config, @NonNull CommonCallbacks.CompletionCallback callback)
      Package:dji.open.pilot.client.interfaces
      Description:

      Set the AR radar scan range configuration. When config.enable is false, the radar scan range display is disabled; when true, it is displayed according to the parameters. Note: Only one global radar scan range configuration is active at a time. Multiple calls are overridden by the latest one.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ARRadarConfig configRadar scan range configuration.
      @NonNull CommonCallbacks.CompletionCallback callbackResult callback.
      class ARCircleInfo ↗
      class ARCircleInfo implements Parcelable
      描述

      AR circle information entity.

      MSDK 5.20.1开始支持

      class ARDistAlpha ↗
      class ARDistAlpha implements Parcelable
      描述

      Configuration for AR face/stroke alpha varying with distance.

      MSDK 5.20.1开始支持

      class ARDistLineWidth ↗
      class ARDistLineWidth implements Parcelable
      描述

      Configuration for AR line width varying with distance.

      MSDK 5.20.1开始支持

      class ARFaceStroke ↗
      class ARFaceStroke implements Parcelable
      描述

      AR face stroke configuration (visibility and stroke properties).

      MSDK 5.20.1开始支持

      enum ARFontGravity
      enum ARFontGravity 
      Package:dji.open.pilot.base.manager.ar
      Description:

      The alignment of the text.

      Supported since MSDK 5.20.1

      Enum Members:
      LEFTAlign left.
      TOPAlign up.
      RIGHTAlign right.
      BOTTOMAlign bottom.
      Class Members:
      class ARIconOrthographicConfig ↗
      class ARIconOrthographicConfig implements Parcelable
      描述

      AR icon orthographic projection configuration.

      MSDK 5.20.1开始支持

      class ARIconPerspectiveConfig ↗
      class ARIconPerspectiveConfig implements Parcelable
      描述

      AR icon perspective projection configuration.

      MSDK 5.20.1开始支持

      enum ARIconProjectionType
      enum ARIconProjectionType 
      Package:dji.open.pilot.base.manager.ar
      Description:

      AR Projection Type Enumeration Indicates the projection method used to render elements in AR.

      Supported since MSDK 5.20.1

      Enum Members:
      NONENo projection, no icon is displayed.
      PERSPECTIVEPerspective projection, where objects appear larger when closer and smaller when farther away, is in line with the visual habits of the human eye.
      ORTHOGRAPHICOrthographic projection, size is independent of distance and maintains a fixed pixel size.
      Class Members:
      class ARLineInfo ↗
      class ARLineInfo implements Parcelable
      描述

      AR line information entity.

      MSDK 5.20.1开始支持

      class ARPointConfig ↗
      class ARPointConfig implements Parcelable
      描述

      AR point configuration.

      MSDK 5.20.1开始支持

      class ARPointInfo ↗
      class ARPointInfo implements Parcelable
      描述

      AR point information.

      MSDK 5.20.1开始支持

      class ARPolygonFace ↗
      class ARPolygonFace implements Parcelable
      描述

      AR face (top/side/bottom) color and visibility configuration.

      MSDK 5.20.1开始支持

      class ARPolygonInfo ↗
      class ARPolygonInfo implements Parcelable
      描述

      AR polygon face information entity.

      MSDK 5.20.1开始支持

      class ARRadarConfig ↗
      class ARRadarConfig implements Parcelable
      描述

      AR radar scan range configuration.

      MSDK 5.20.1开始支持

      class ARStrokeInfo ↗
      class ARStrokeInfo implements Parcelable
      描述

      AR line segment stroke configuration.

      MSDK 5.20.1开始支持

      class ARTextConfig ↗
      class ARTextConfig implements Parcelable
      描述

      AR Text configuration.

      MSDK 5.20.1开始支持