DJI Mobile SDK Documentation
      包:dji.v5.manager.aircraft.flysafe.info
      classSince MSDK 5.3.0

      FlyZoneLicenseInfo

      限飞区解禁证书类。包括解禁证书基本信息,比如证书类型,有效期,证书绑定的飞行器飞控SN,使能状态等。

      Package dji.v5.manager.aircraft.flysafe.infoAndroid · Java / Kotlin

      限飞区解禁证书类。包括解禁证书基本信息,比如证书类型,有效期,证书绑定的飞行器飞控SN,使能状态等。

      MSDK 5.3.0开始支持

      成员

      17 个成员

      方法

      17

      基础信息

      method

      getLicenseType

      Since MSDK 5.3.0
      FlySafeLicenseType getLicenseType() 

      获取限飞区解禁证书类型。

      返回值

      类型说明
      FlySafeLicenseType返回限飞区解禁证书类型。
      method
      method

      getSN

      Since MSDK 5.3.0
      String getSN() 

      获取限飞区解禁证书绑定的飞行器飞控SN。

      返回值

      类型说明
      String返回限飞区解禁证书绑定的飞行器飞控SN。
      method

      getStartTimeStamp

      Since MSDK 5.3.0
      long getStartTimeStamp() 

      获取限飞区解禁证书有效期的开始时间戳。

      返回值

      类型说明
      long返回限飞区解禁证书有效期的开始时间戳。
      method

      getEndTimeStamp

      Since MSDK 5.3.0
      long getEndTimeStamp() 

      获取限飞区解禁证书有效期的结束时间戳。

      返回值

      类型说明
      long返回限飞区解禁证书有效期的结束时间戳。
      method

      getLicenseId

      Since MSDK 5.3.0
      int getLicenseId() 

      获取限飞区解禁证书ID。

      返回值

      类型说明
      int返回限飞区解禁证书ID。
      method
      method

      isEnabled

      Since MSDK 5.3.0
      boolean isEnabled() 

      获取限飞区解禁证书是否生效。你可以调用setFlyZoneLicensesEnabled使能或者关闭解禁证书。使能解禁证书以后,飞行器将可以在限飞区正常起飞。

      返回值

      类型说明
      boolean返回限飞区解禁证书是否生效。
      method
      method

      isValid

      Since MSDK 5.3.0
      boolean isValid() 

      获取限飞区解禁证书是否有效。如果证书已经失效,请重新在DJI官网申请解禁证书。

      返回值

      类型说明
      boolean返回限飞区解禁证是否有效。
      method

      getDescription

      Since MSDK 5.3.0
      String getDescription() 

      获取限飞区解禁证书的描述。

      返回值

      类型说明
      String返回限飞区解禁证书的描述。


      限飞区解禁信息

      method

      getFlyZoneIDs

      Since MSDK 5.3.0
      List<Integer> getFlyZoneIDs() 

      获取限飞区ID。

      返回值

      类型说明
      List<Integer>返回限飞区ID。


      圆柱解禁信息

      method

      getCylinderLatitude

      Since MSDK 5.3.0
      float getCylinderLatitude() 

      获取圆柱解禁区的纬度。

      返回值

      类型说明
      float返回圆柱解禁区的纬度。
      method

      getCylinderLongitude

      Since MSDK 5.3.0
      float getCylinderLongitude() 

      获取圆柱解禁区的经度。

      返回值

      类型说明
      float返回圆柱解禁区的经度。
      method

      getCylinderRadius

      Since MSDK 5.3.0
      float getCylinderRadius() 

      获取圆柱解禁区的半径。

      返回值

      类型说明
      float返回圆柱解禁区的半径。
      method

      getCylinderHeight

      Since MSDK 5.3.0
      int getCylinderHeight() 

      获取圆柱解禁区的限高高度。

      返回值

      类型说明
      int返回圆柱解禁区的限高高度。


      多边形解禁信息

      method

      getPolygonPoints

      Since MSDK 5.3.0
      List<LocationCoordinate2D> getPolygonPoints() 

      获取多边形解禁区的范围。

      返回值

      类型说明
      List<LocationCoordinate2D>返回多边形解禁区的范围。


      限高解禁信息

      method

      getLimitedHeight

      Since MSDK 5.3.0
      int getLimitedHeight() 

      获取限高高度。

      返回值

      类型说明
      int返回限高高度。


      国家解禁信息

      method

      getCountryId

      Since MSDK 5.3.0
      int getCountryId() 

      获取国家解禁区ID。

      返回值

      类型说明
      int返回国家解禁区ID。


      RID解禁信息

      method

      getRidUnlockType

      Since MSDK 5.8.0
      RidUnlockType getRidUnlockType() 

      获取RID解禁类型。

      返回值

      类型说明
      RidUnlockType返回RID解禁类型。