DJI Mobile SDK Documentation

      class LensCapabilities

      class LensCapabilities
      Package:dji.sdk.camera
      Description:

      Some of the camera's lens parameters have dynamic ranges. The LensCapabilities class allows you to query the valid range for a parameter.

      Class Members:
      State Updates
      method
      method addDJILensParametersListener
      void addDJILensParametersListener(LensCapabilities.DJILensParametersListener listener)
      Package:dji.sdk.camera
      Description:

      Adds the listener for the lens' range change events.

      Input Parameters:
      LensCapabilities.DJILensParametersListener listenerLens range change listener.
      method removeDJILensParametersListener
      void removeDJILensParametersListener(LensCapabilities.DJILensParametersListener listener)
      Package:dji.sdk.camera
      Description:

      Removes the listener for the lens range change.

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

      Remove all listeners.

      method setThermalGainModeTemperatureRangeCallback
      void setThermalGainModeTemperatureRangeCallback(ThermalGainModeTemperatureRangeCallback callback)
      Package:dji.sdk.camera
      Description:

      Adds the listener for the supported temperature range when current gain mode changes.

      Input Parameters:
      ThermalGainModeTemperatureRangeCallback callbackGain mode change listener.
      Exposure
      method
      method ISORange
      @Nullable
      SettingsDefinitions.ISO[] ISORange()
      Package:dji.sdk.camera
      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 represents one current supported ISO value.

      Return:
      SettingsDefinitions.ISO[]Array of ISO. Each element represents one current supported ISO value.
      method shutterSpeedRange
      @Nullable
      SettingsDefinitions.ShutterSpeed[] shutterSpeedRange()
      Package:dji.sdk.camera
      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:
      SettingsDefinitions.ShutterSpeed[]Array of ShutterSpeed. Each element represents one current supported shutter speed value.
      method apertureRange
      @Nullable
      SettingsDefinitions.Aperture[] apertureRange()
      Package:dji.sdk.camera
      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:
      SettingsDefinitions.Aperture[]Array of Aperture. Each element represents one current supported aperture value.
      method exposureCompensationRange
      @Nullable
      SettingsDefinitions.ExposureCompensation[] exposureCompensationRange()
      Package:dji.sdk.camera
      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:
      SettingsDefinitions.ExposureCompensation[]Array of ExposureCompensation. Each element represents one current supported exposure compensation value.
      method videoResolutionAndFrameRateRange
      @Nullable
      ResolutionAndFrameRate[] videoResolutionAndFrameRateRange()
      Package:dji.sdk.camera
      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.
      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 nil 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.