DJI Mobile SDK Documentation

      class Capabilities

      class Capabilities implements DJIParamAccessListener
      Package:dji.sdk.camera
      Description:

      Some of the camera's parameters have dynamic ranges. The Capabilities class allows you to query the valid range for a parameter. Type-casting is required to get the corresponding enumerator value for each range element.

      Class Members:
      method addDJICameraParametersListener
      void addDJICameraParametersListener(DJICameraParametersListener listener)
      Package:dji.sdk.camera
      Description:

      Adds the listener for the camera range change.

      Input Parameters:
      DJICameraParametersListener listenerCamera range change listener.
      method removeListener
      void removeListener(DJICameraParametersListener listener)
      Package:dji.sdk.camera
      Description:

      Remove listener which is listening to the camera range change.

      Input Parameters:
      DJICameraParametersListener listenerAn instance of DJICameraParametersListener.
      method removeAllListener
      void removeAllListener()
      Package:dji.sdk.camera
      Description:

      Remove all listeners.

      Camera Mode
      method
      method modeRange
      CameraMode[] modeRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.MODE_RANGE
      Description:

      Returns the current valid range for camera mode (CameraMode). Returns null if current camera has no supported camera mode or the camera is disconnected.

      Return:
      CameraMode[]Array of CameraMode elements. Each element represents one current supported camera mode.
      Exposure
      method
      method exposureModeRange
      ExposureMode[] exposureModeRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.EXPOSURE_MODE_RANGE
      Description:

      Returns the current valid range for camera's exposure mode (ExposureMode). Returns null if current camera does not support any exposure mode or the camera is disconnected. @return Array of NSNumber. Each element represent one current supported exposure mode.

      Return:
      ExposureMode[]Array of ExposureMode. Each element represent one current supported exposure mode.
      method
      method ISORange
      ISO[] ISORange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.ISO_RANGE
      Description:

      Returns the current valid range for camera's ISO (see ISO). Returns null if current camera does not support any ISO value or the camera is disconnected. @return A CameraISO array. Each element represent one current supported ISO value.

      Return:
      ISO[]Array of ISO. Each element represent one current supported ISO value.
      method shutterSpeedRange
      ShutterSpeed[] shutterSpeedRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.SHUTTER_SPEED_RANGE
      Description:

      Returns the current valid range for camera's shutter speed (see ShutterSpeed). Returns null if current camera does not support any shutter speed value or the camera is disconnected. @return Array of CameraShutterSpeed. Each element represent one current supported shutter speed value.

      Return:
      ShutterSpeed[]Array of ShutterSpeed. Each element represent one current supported shutter speed value.
      method apertureRange
      Aperture[] apertureRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.APERTURE_RANGE
      Description:

      Returns the current valid range for camera's aperture (see Aperture). Returns null if current camera does not support any aperture value or the camera is disconnected. @return Array of CameraAperture. Each element represent one current supported aperture value.

      Return:
      Aperture[]Array of Aperture. Each element represent one current supported aperture value.
      method exposureCompensationRange
      ExposureCompensation[] exposureCompensationRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.EXPOSURE_COMPENSATION_RANGE
      Description:

      Returns the current valid range for camera's exposure compensation (see ExposureCompensation). Returns null if current camera does not support any exposure compensation value or the camera is disconnected. @return Array of CameraExposureCompensation. Each element represent one current supported exposure compensation value.

      Return:
      ExposureCompensation[]Array of ExposureCompensation. Each element represent one current supported exposure compensation value.
      method videoResolutionAndFrameRateRange
      ResolutionAndFrameRate[] videoResolutionAndFrameRateRange()
      Package:dji.sdk.camera
      SDK Key:CameraKey.VIDEO_RESOLUTION_FRAME_RATE_RANGE
      Description:

      Returns the current valid range for video resolution CameraVideoResolution and frame rate VideoFrameRate. Returns null if the current camera does not support any video resolution or frame rate setting, or if the camera is disconnected.

      Return:
      ResolutionAndFrameRate[]Array of pairs. Each pair represents a valid VideoResolution value and VideoFrameRate value.
      method SSDVideoResolutionRange
      VideoResolution[] SSDVideoResolutionRange()
      Package:dji.sdk.camera
      Description:

      Returns the current valid range for camera's RAW video resolution. Returns null if current camera does not support any RAW video resolution or the camera is disconnected.

      Return:
      VideoResolution[]Array of VideoResolution. Each element represent one current supported resolution value.
      interface DJICameraParametersListener
      interface DJICameraParametersListener
      Package:dji.sdk.camera
      Description:

      Defines video resolution and frame rate as a type.

      Interface Methods:
      method onCameraISORangeChange
      void onCameraISORangeChange(ISO[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera ISO range is changed, the listener will receive this callback.

      Input Parameters:
      ISO[] newRangeThe new range.
      method onCameraExposureCompensationRangeChange
      void onCameraExposureCompensationRangeChange(ExposureCompensation[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera exposure compensation range is changed, the listener will receive this callback.

      Input Parameters:
      ExposureCompensation[] newRangeThe new range.
      method onCameraExposureModeRangeChange
      void onCameraExposureModeRangeChange(SettingsDefinitions.ExposureMode[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera exposure mode range is changed, the listener will receive this callback.

      Input Parameters:
      SettingsDefinitions.ExposureMode[] newRangeThe new range.
      method onCameraShutterSpeedRangeChange
      void onCameraShutterSpeedRangeChange(ShutterSpeed[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera shutter speed range is changed, the listener will receive this callback.

      Input Parameters:
      ShutterSpeed[] newRangeThe new range.
      method onCameraModeRangeChange
      void onCameraModeRangeChange(CameraMode[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera shutter speed range is changed, the listener will receive this callback.

      Input Parameters:
      CameraMode[] newRangeThe new range.
      method onCameraVideoResolutionAndFrameRateRangeChange
      void onCameraVideoResolutionAndFrameRateRangeChange(ResolutionAndFrameRate[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera video resolution and frame rate range is changed, the listener will receive this callback.

      Input Parameters:
      ResolutionAndFrameRate[] newRangeThe new range.
      method onCameraApertureRangeChange
      void onCameraApertureRangeChange(Aperture[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera aperture range is changed, the listener will receive this callback.

      Input Parameters:
      Aperture[] newRangeThe new range.
      method onCameraSSDRawVideoResolutionRangeChange
      void onCameraSSDRawVideoResolutionRangeChange(VideoResolution[] newRange)
      Package:dji.sdk.camera
      Description:

      When the camera SSD raw video resolution and frame rate range is changed, the listener will receive this callback.

      Input Parameters:
      VideoResolution[] newRangeThe new range.