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.
Parameters
Name
Type
Description
mKeyInfo
DJIKeyInfo<T>
A key interface in DJIKey. For example, FlightControllerKey.KeyAircraftAttitude, which represents the key to get the aircraft attitude.
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.
Parameters
Name
Type
Description
mKeyInfo
DJIKeyInfo<T>
A key interface in DJIKey. For example, GimbalKey.KeyGimbalReset, which represents the key to reset the gimbal.
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.
Parameters
Name
Type
Description
mKeyInfo
DJIKeyInfo<T>
A key interface in DJIKey. For example, CameraKey.KeyCameraType, which represents the key of the camera type.
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.
Parameters
Name
Type
Description
mKeyInfo
DJIActionKeyInfo<T,R>
A key interface in DJIKey. For example, CameraKey.KeyCameraType, which represents the key of the camera type.
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.
Parameters
Name
Type
Description
mKeyInfo
DJIActionKeyInfo<T,R>
A key interface in DJIKey. For example, CameraKey.KeyCameraType, which represents the key of the camera type.
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.
Parameters
Name
Type
Description
mKeyInfo
DJIActionKeyInfo<T,R>
A key interface in DJIKey. For example, CameraKey.KeyCameraType, which represents the key of the camera type.