DJI Mobile SDK Documentation

      class CustomUnlockZone

      @EXClassNullAway
      class CustomUnlockZone
      Package:dji.common.flightcontroller.flyzone
      Description:

      Users can unlock areas of a restricted fly zone through http://www.dji.com/flysafe/custom-unlock. A user needs to show special authorization (usually from a third party such as a regulatory or managing agency) as part of the process to unlock the area within the restricted fly zone. Therefore each request is unique and customized to the individual. If the request is successful, the unlocked area is tied to the user's account as an Custom Unlock Zone.

      This class contains the properties of an Custom Unlock Zone.

      Class Members:
      method
      method getID
      int getID()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The unique ID of the Custom Unlock Zone.

      Return:
      intAn int value of the ID.
      method
      method getName
      String getName()
      Package:dji.common.flightcontroller.flyzone
      Description:

      Name of the Custom Unlock Zone.

      Return:
      StringA string value of the name.
      method
      method getCenter
      LocationCoordinate2D getCenter()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The coordinate of the Custom Unlock Zone's center.

      Return:
      LocationCoordinate2DA LocationCoordinate2D object.
      method
      method getRadius
      double getRadius()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The radius of the Custom Unlock Zone in meters.

      Return:
      doubleA float value of the radius.
      method getStartTime
      String getStartTime()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The timestamp of when the unlocking begins, formatted in UTC (YYYY-MM-DD hh:mm:ss).

      Return:
      StringA string value of start time.
      method getEndTime
      String getEndTime()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The timestamp of when the unlocking ends, formatted in UTC (YYYY-MM-DD hh:mm:ss).

      Return:
      StringA String value of the end time.
      method
      method isExpired
      boolean isExpired()
      Package:dji.common.flightcontroller.flyzone
      Description:

      true if the Custom Unlock Zone has expired. After a zone is expired, the location will be locked.

      Return:
      booleanA boolean value to check if is expired.