class ProductKey
@Keep class ProductKey extends DJIProductKey
|
| 包: | dji.sdk.keyvalue.key |
| 继承自: | DJIProductKey |
描述:
ProductKey提供了一组方法来获取硬件产品信息。包括获取硬件产品的连接状态,产品类型和固件版本。
MSDK 5.0.0开始支持
类成员:
基础信息
final KeyConnection
static final DJIKeyInfo<Boolean> KeyConnection = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"Connection", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)
|
描述:
参数: Boolean
true表示硬件产品已连接。
MSDK 5.0.0开始支持
final KeyProductType
static final DJIKeyInfo<ProductType> KeyProductType = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"ProductType", new SingleValueConverter<>(ProductType.class,ProductTypeMsg.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)
|
描述:
参数: ProductType
获取硬件产品类型。
MSDK 5.0.0开始支持
final KeyFirmwareVersion
static final DJIKeyInfo<String> KeyFirmwareVersion = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"FirmwareVersion", SingleValueConverter.StringConverter).canGet(true).canSet(false).canListen(false).canPerformAction(false).setIsEvent(false)
|
描述:
参数: String
获取硬件产品的固件版本号。
MSDK 5.0.0开始支持