|
Package: | dji.sdk.keyvalue.key |
Key tool class. DJI encapsulates a series of more concise and easy-to-use methods to create DJIKey
instance. Supported since MSDK 5.0.0
|
Package: | dji.sdk.keyvalue.key |
The default method for creating Key instances. Supported since MSDK 5.0.0
DJIKeyInfo<T> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
int productId | Product ID of the currently connected device, defaults to 0. |
int componentIndex | Gimbal load position. Please refer to ComponentIndexType to set the corresponding int value. |
int subComponentType | Camera lens type. Please refer to CameraLensType to set the corresponding int value. |
int subComponentIndex | Reserved parameter. |
static <T> DJIKey<T> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
Create a Key instance by passing a DJIKeyInfo
instance of a Key interface. This method is suitable for instance creation of keys that have nothing to do with the gimbal load and camera. Supported since MSDK 5.0.0
DJIKeyInfo<T> mKeyInfo | A key interface in DJIKey . For example, FlightControllerKey.KeyAircraftAttitude , which represents the key to get the aircraft attitude. |
static <T> DJIKey<T> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
Create a Key instance by passing in the DJIKeyInfo
instance of a Key interface and the load position of the gimbal. This method is suitable for instance creation of keys related to the gimbal load. Supported since MSDK 5.0.0
DJIKeyInfo<T> mKeyInfo | A key interface in DJIKey . For example, GimbalKey.KeyGimbalReset , which represents the key to reset the gimbal. |
@NonNull ComponentIndexType componentIndexType | Gimbal load position. |
static <T> DJIKey<T> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
Create a Key instance by passing in the DJIKeyInfo
instance of a Key interface, camera lens type and the load position of the gimbal. This method is suitable for instance creation of keys related to the camera. Supported since MSDK 5.0.0
DJIKeyInfo<T> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
ComponentIndexType componentIndexType | Gimbal load position. |
CameraLensType cameraLensType | Camera lens type. |
static <T> DJIKey<T> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
The default method for creating an ActionKey instance. Supported since MSDK 5.0.0
DJIActionKeyInfo<T, R> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
int productId | Product ID of the currently connected device, defaults to 0. |
int componentIndex | Gimbal load position. Please refer to ComponentIndexType to set the corresponding int value. |
int subComponentType | Camera lens type. Please refer to CameraLensType to set the corresponding int value. |
int subComponentIndex | Reserved parameter. |
static <T, R> DJIKey.ActionKey<T, R> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
Create an ActionKey instance by passing in a DJIKeyInfo instance of a Key interface. This method is suitable for instance creation of ActionKey which is not related to gimbal load and camera. Supported since MSDK 5.0.0
DJIActionKeyInfo<T, R> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
static <T, R> DJIKey.ActionKey<T, R> | Return instance of DJIKey . |
static <T, R> DJIKey.ActionKey<T, R> createKey(DJIActionKeyInfo<T, R> mKeyInfo, ComponentIndexType componentIndexType) |
Package: | dji.sdk.keyvalue.key |
Create a Key instance by passing in the DJIKeyInfo
instance of an ActionKey interface and the load position of the gimbal. This method is suitable for instance creation of ActionKey related to gimbal load. Supported since MSDK 5.0.0
DJIActionKeyInfo<T, R> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
ComponentIndexType componentIndexType | Gimbal load position. |
static <T, R> DJIKey.ActionKey<T, R> | Return instance of DJIKey . |
|
Package: | dji.sdk.keyvalue.key |
Create a Key instance by passing in the DJIKeyInfo
instance of an ActionKey interface, camera lens type and the load position of the gimbal. This method is suitable for instance creation of ActionKey related to camera.
DJIActionKeyInfo<T, R> mKeyInfo | A key interface in DJIKey . For example, CameraKey.KeyCameraType , which represents the key of the camera type. |
ComponentIndexType componentIndexType | Gimbal load position. |
CameraLensType cameraLensType | Camera lens type. |
static <T, R> DJIKey.ActionKey<T, R> | Return instance of DJIKey . |
enum ComponentIndexType implements JNIProguardKeepTag |
Package: | dji.sdk.keyvalue.value.common |
Gimbal load position.
LEFT_OR_MAIN | Portside(Main) position. |
RIGHT | Starboard position. |
UP | Upside location. |
FPV | Nose(FPV)location. |
enum CameraLensType implements JNIProguardKeepTag |
Package: | dji.sdk.keyvalue.value.common |
Type of camera lens.