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.

      method setMultispectralShutterSpeedRangeCallback
      void setMultispectralShutterSpeedRangeCallback(MultispectralShutterSpeedRangeCallback listener)
      Package:dji.sdk.camera
      Description:

      Use this to listen the shutter speed supported by the multispectral camera single-band sensors (sensors except the RGB one). Only supported by multispectral camera of P4 Multispectral.

      Input Parameters:
      MultispectralShutterSpeedRangeCallback listenerThe interface of MultispectralShutterSpeedRangeCallback.
      method setMultispectralExposureCompensationRangeCallback
      void setMultispectralExposureCompensationRangeCallback(MultispectralExposureCompensationRangeCallback listener)
      Package:dji.sdk.camera
      Description:

      Use this to listen the exposure compensation supported by the multispectral camera single-band sensors (sensors except the RGB one). Only supported by multispectral camera of P4 Multispectral.

      Input Parameters:
      MultispectralExposureCompensationRangeCallback listenerThe interface of MultispectralExposureCompensationRangeCallback.
      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 represents one current supported exposure mode.

      Return:
      ExposureMode[]Array of ExposureMode. Each element represents 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 represents 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 represents one current supported shutter speed value.

      Return:
      ShutterSpeed[]Array of ShutterSpeed. Each element represents 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 represents one current supported aperture value.

      Return:
      Aperture[]Array of Aperture. Each element represents 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 represents one current supported exposure compensation value.

      Return:
      ExposureCompensation[]Array of ExposureCompensation. Each element represents 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 'nil' if current camera does not support any RAW video resolution or the camera is disconnected.

      Return:
      VideoResolution[]Array of pairs. Each pair represents a valid VideoResolution value and VideoFrameRate value.
      Thermal Palette Range
      method
      method thermalPaletteRange
      @Nullable
      SettingsDefinitions.ThermalPalette[] thermalPaletteRange()
      Package:dji.sdk.camera
      Description:

      Returns the current valid range for thermal camera's palette (see ThermalPalette). Returns NULL if current thermal camera has not supported palette or the thermal camera is disconnected.

      Return:
      SettingsDefinitions.ThermalPalette[]Array of ThermalPalette elements. Each element represents one current palette value.
      Multispectral Shutter Speed Range
      method
      method multispectralShutterSpeedRange
      @Nullable
      SettingsDefinitions.ShutterSpeed[] multispectralShutterSpeedRange()
      Package:dji.sdk.camera
      Description:

      Returns the current valid range for multispectral camera's single-band sensors's (sensors except the RGB one). shutter speed (see ShutterSpeed). Returns null if current camera does not support any shutter speed value or the camera is disconnected. Only supported by multispectral camera of P4 Multispectral.

      Return:
      SettingsDefinitions.ShutterSpeed[]Array of the ShutterSpeed enum values. Each element represents one current supported shutter speed value.
      Multispectral Exposure Compensation Range
      method
      method multispectralExposureCompensationRange
      @Nullable
      SettingsDefinitions.ExposureCompensation[] multispectralExposureCompensationRange()
      Package:dji.sdk.camera
      Description:

      Returns the current valid range for multispectral camera's single-band sensors's (sensors except the RGB one). Exposure compensation (see ExposureCompensation). Returns NULL if current camera does not support any exposure compensation value or the multispectral camera is disconnected. Only supported by multispectral camera of P4 Multispectral.

      Return:
      SettingsDefinitions.ExposureCompensation[]Array of the ExposureCompensation enum value. Each element represents one current supported exposure compensation value.
      method FlatCameraModeRange
      @Nullable
      FlatCameraMode[] FlatCameraModeRange()
      Package:dji.sdk.camera
      Description:

      Returns the current valid range for flat camera mode (FlatCameraMode). Returns null if isFlatCameraModeSupported return false or the camera is disconnected.

      Return:
      FlatCameraMode[]Array of FlatCameraMode elements. Each element represents one current supported flat camera mode.