public class

DJICameraParameters

extends Object
java.lang.Object
   ↳ dji.sdk.Camera.DJICameraParameters

Class Overview

Some of the camera's parameters have dynamic ranges. DJICameraParameters provides the interface to query the valid range is for a parameter.

Summary

Nested Classes
interface DJICameraParameters.DJICameraParametersListener Notified when the the camera parameters' range changes. 
class DJICameraParameters.VideoResolutionFps Defines video resolution and frame rate as a type. 
Public Methods
void addDJICameraParametersListener(DJICameraParameters.DJICameraParametersListener listener)
Adds the listener for the camera range change.
static DJICameraParameters getInstance()
Gets a DJICameraParameters instance.
synchronized static void onDestroy()
Release the object.
void removeAllListener()
Remove all listeners.
void removeListener(DJICameraParameters.DJICameraParametersListener listener)
Remove listener which is listening to the camera range change.
CameraAperture[] supportedCameraApertureRange()
Returns the current valid range for camera's aperture (CameraAperture).
CameraExposureCompensation[] supportedCameraExposureCompensationRange()
Returns the current valid range for camera's exposure compensation (CameraExposureCompensation).
CameraExposureMode[] supportedCameraExposureModeRange()
Returns the current valid range for camera's exposure mode (CameraExposureMode).
CameraISO[] supportedCameraISORange()
Returns the current valid range for camera's ISO (CameraISO).
CameraMode[] supportedCameraModeRange()
Returns the current valid range for camera mode (CameraMode).
CameraShutterSpeed[] supportedCameraShutterSpeedRange()
Returns the current valid range for camera's shutter speed (CameraShutterSpeed).
VideoResolutionFps[] supportedCameraVideoResolutionAndFrameRateRange()
Returns the current valid range for video resolution (CameraVideoResolution) and frame rate (CameraVideoFrameRate).
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void addDJICameraParametersListener (DJICameraParameters.DJICameraParametersListener listener)

Adds the listener for the camera range change.

Parameters
listener Camera range change listener.

public static DJICameraParameters getInstance ()

Gets a DJICameraParameters instance.

public static synchronized void onDestroy ()

Release the object.

public void removeAllListener ()

Remove all listeners.

public void removeListener (DJICameraParameters.DJICameraParametersListener listener)

Remove listener which is listening to the camera range change.

Parameters
listener An object of DJICameraParametersListener.

public CameraAperture[] supportedCameraApertureRange ()

Returns the current valid range for camera's aperture (CameraAperture). Returns null if current camera does not support any aperture value or the camera is disconnected.

Returns
  • Array of CameraAperture. Each element represent one current supported aperture value.

public CameraExposureCompensation[] supportedCameraExposureCompensationRange ()

Returns the current valid range for camera's exposure compensation (CameraExposureCompensation). Returns null if current camera does not support any exposure compensation value or the camera is disconnected.

Returns
  • Array of CameraExposureCompensation. Each element represent one current supported exposure compensation value.

public CameraExposureMode[] supportedCameraExposureModeRange ()

Returns the current valid range for camera's exposure mode (CameraExposureMode). Returns null if current camera does not support any exposure mode or the camera is disconnected.

Returns
  • Array of CameraExposureMode. Each element represent one current supported exposure mode.

public CameraISO[] supportedCameraISORange ()

Returns the current valid range for camera's ISO (CameraISO). Returns null if current camera does not support any ISO value or the camera is disconnected.

Returns
  • Array of CameraISO. Each element represent one current supported ISO value.

public CameraMode[] supportedCameraModeRange ()

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

Returns
  • Array of CameraMode elements. Each element represents one current supported camera mode.

public CameraShutterSpeed[] supportedCameraShutterSpeedRange ()

Returns the current valid range for camera's shutter speed (CameraShutterSpeed). Returns null if current camera does not support any shutter speed value or the camera is disconnected.

Returns
  • Array of CameraShutterSpeed. Each element represent one current supported shutter speed value.

public VideoResolutionFps[] supportedCameraVideoResolutionAndFrameRateRange ()

Returns the current valid range for video resolution (CameraVideoResolution) and frame rate (CameraVideoFrameRate). Returns null if current camera does not support any video resolution or frame rate.

Returns
  • Array of pairs. Each pair represents a valid CameraVideoResolution value and CameraVideoFrameRate value.