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 getID
Package: dji.common.flightcontroller.flyzone
Description:
The unique ID of the Custom Unlock Zone.
Return:
int An int value of the ID.
method getUnlockZoneType
UnlockZoneType getUnlockZoneType ()
Package: dji.common.flightcontroller.flyzone
Description:
The type of custom unlocking.
Return:
method getName
Package: dji.common.flightcontroller.flyzone
Description:
Name of the Custom Unlock Zone.
Return:
String A string value of the name.
method getCenter
LocationCoordinate2D getCenter ()
Package: dji.common.flightcontroller.flyzone
Description:
The coordinate of the Custom Unlock Zone's center. Only used when getUnlockZoneType
is CIRCLE_UNLOCK_AREA
.
Return:
method getRadius
Package: dji.common.flightcontroller.flyzone
Description:
The radius of the Custom Unlock Zone in meters. Valid when getUnlockZoneType
is CIRCLE_UNLOCK_AREA
.
Return:
double A float value of the radius.
method getCountry
Package: dji.common.flightcontroller.flyzone
Description:
Check country code (https://www.iso.org/iso-3166-country-codes.html) for the custom unlock zone's shape. Valid when getUnlockZoneType
is COUNTRY_UNLOCK
.
Return:
String The string of country code.
method getHeight
Package: dji.common.flightcontroller.flyzone
Description:
The unlocked max flight altitude limit in the custom unlock zone. Valid when getUnlockZoneType
is HEIGHT_UNLOCK
.
Return:
int An int value of max flight altitude.
method getPoints
List<LocationCoordinate2D> getPoints ()
Package: dji.common.flightcontroller.flyzone
Description:
The vertices (locations) that make up the custom unlock zone shape. Only used when getUnlockZoneType
is PENTAGON_UNLOCK
.
Return:
method getStartTime
Package: dji.common.flightcontroller.flyzone
Description:
The timestamp of when the unlocking begins, formatted in UTC (YYYY-MM-DD hh:mm:ss).
Return:
String A string value of start time.
method getEndTime
Package: dji.common.flightcontroller.flyzone
Description:
The timestamp of when the unlocking ends, formatted in UTC (YYYY-MM-DD hh:mm:ss).
Return:
String A String value of the end time.
method 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:
boolean A boolean value to check if is expired.
enum UnlockZoneType
Package: dji.common.flysafe
Description:
An enum class represents the type of custom unlocking.
Enum Members:
CIRCLE_UNLOCK_AREAThe custom unlock zone is a circle. COUNTRY_UNLOCKThe custom unlock zone is a country. HEIGHT_UNLOCKUnlock the max flight altitude limit in the custom unlock zone. PENTAGON_UNLOCKThe custom unlock zone is a polygon. UNKNOWNThe custom unlock type is unknown.
Class Members: