DJI Mobile SDK Documentation
      包:dji.sdk.keyvalue.key
      继承自:DJIProductKey
      classSince MSDK 5.0.0

      ProductKey

      ProductKey提供了一组方法来获取硬件产品信息。包括获取硬件产品的连接状态,产品类型和固件版本。

      Package dji.sdk.keyvalue.keyAndroid · Java / Kotlin

      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

      获取硬件产品的固件版本号。

      本页目录