DJI Mobile SDK Documentation

      class FlyZoneLicenseInfo

      class FlyZoneLicenseInfo implements KeepProguard
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Restricted fly zone licenses class. Including the basic information of the unlocking licenses, such as license type, validity period, flight controller SN bound to the license, enabling status, etc.

      Supported since MSDK 5.3.0

      Class Members:

      Basic Information

      method getLicenseType
      FlySafeLicenseType getLicenseType()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the type of the restricted fly zone licnese.

      Supported since MSDK 5.3.0

      Return:
      FlySafeLicenseTypeReturns the type of the restricted fly zone licnese.
      method
      method getSN
      String getSN()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the flight controller SN of the aircraft that is bound to the licnese.

      Supported since MSDK 5.3.0

      Return:
      StringReturns the flight controller SN of the aircraft that is bound to the licnese.
      method getStartTimeStamp
      long getStartTimeStamp()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the start timestamp of the validity period of the restricted fly zone license.

      Supported since MSDK 5.3.0

      Return:
      longReturns the start timestamp of the validity period of the restricted fly zone license.
      method getEndTimeStamp
      long getEndTimeStamp()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the end timestamp of the validity period of the restricted fly zone license.

      Supported since MSDK 5.3.0

      Return:
      longReturns the send timestamp of the validity period of the restricted fly zone license.
      method getLicenseId
      int getLicenseId()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the ID of the restricted fly zone release license.

      Supported since MSDK 5.3.0

      Return:
      intReturns the ID of the restricted fly zone release license.
      method
      method isEnabled
      boolean isEnabled()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets whether the restricted fly zone license is valid. You can call setFlyZoneLicensesEnabled to enable or disable the licnese. After enabling the license, the aircraft will be able to take off normally in the restricted fly zone.

      Supported since MSDK 5.3.0

      Return:
      booleanReturns whether the restricted fly zone license is valid.
      method
      method isValid
      boolean isValid()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets whether the restricted fly zone licnese is valid. If the licnese has expired, please re-apply the license on the DJI official website.

      Supported since MSDK 5.3.0

      Return:
      booleanReturns whether the restricted fly zone licnese is valid.
      method getDescription
      String getDescription()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the description of the restricted fly zone licnese.

      Supported since MSDK 5.3.0

      Return:
      StringReturns the description of the restricted fly zone licnese.


      Restricted Fly Zone Unlock information

      method getFlyZoneIDs
      List<Integer> getFlyZoneIDs()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the ID of unlock restricted fly zone.

      Supported since MSDK 5.3.0

      Return:
      List<Integer>Returns the ID of unlock restricted fly zone.


      Cylinder Zone Unlock Information

      method getCylinderLatitude
      float getCylinderLatitude()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the latitude of the unlock cylinder zone.

      Supported since MSDK 5.3.0

      Return:
      floatReturns the latitude of the unlock cylinder zone.
      method getCylinderLongitude
      float getCylinderLongitude()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the longitude of the unlock cylinder zone.

      Supported since MSDK 5.3.0

      Return:
      floatReturns the longitude of the unlock cylinder zone.
      method getCylinderRadius
      float getCylinderRadius()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the radius of the unlock cylinder zone.

      Supported since MSDK 5.3.0

      Return:
      floatReturns the radius of the unlock cylinder zone.
      method getCylinderHeight
      int getCylinderHeight()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the height limit of the unlock cylinder zone.

      Supported since MSDK 5.3.0

      Return:
      intReturns the height limit of the cylinder zone.


      Polygon Zone Unlock Information

      method getPolygonPoints
      List<LocationCoordinate2D> getPolygonPoints()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the range of the unlock polygon zone.

      Supported since MSDK 5.3.0

      Return:
      List<LocationCoordinate2D>Returns the range of the polygon zone.


      Height Limit Unlock Information

      method getLimitedHeight
      int getLimitedHeight()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the unlock height limit.

      Supported since MSDK 5.3.0

      Return:
      intReturns the unlock height limit.


      Country Unlock Information

      method getCountryId
      int getCountryId()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the country unlock zone ID.

      Supported since MSDK 5.3.0

      Return:
      intReturns the country unlock zone ID.


      RID Unlock Information

      method getRidUnlockType
      RidUnlockType getRidUnlockType()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the RID unlock type.

      Supported since MSDK 5.8.0

      Return:
      RidUnlockTypeReturns the RID unlock type.