class ProductKey
@Keep class ProductKey extends DJIProductKey
|
| 包: | dji.sdk.keyvalue.key |
| 继承自: | DJIProductKey |
classSince MSDK 5.0.0
ProductKey
ProductKey提供了一组方法来获取硬件产品信息。包括获取硬件产品的连接状态,产品类型和固件版本。
描述:
ProductKey提供了一组方法来获取硬件产品信息。包括获取硬件产品的连接状态,产品类型和固件版本。
MSDK 5.0.0开始支持
成员
3 个成员方法
3没有匹配的成员,请尝试更短的关键词。
基础信息
method
KeyConnection
Since MSDK 5.0.0
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表示硬件产品已连接。
method
KeyProductType
Since MSDK 5.0.0
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
获取硬件产品类型。
method
KeyFirmwareVersion
Since MSDK 5.0.0
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
获取硬件产品的固件版本号。