DJI Mobile SDK Documentation

      class FlySafeWarningInformation

      class FlySafeWarningInformation
      Package:dji.common.flysafe.notification
      Description:

      This class contains DJI flying safety warning information related to fly zones. The event indicates the reason. Use description method to get detail information.

      Class Members:
      method
      method getEvent
      FlySafeWarningEvent getEvent()
      Package:dji.common.flysafe.notification
      Description:

      Returns the event of DJI flying safety warning.

      Return:
      FlySafeWarningEventAn enum value of FlySafeWarningEvent.
      method getHeightLimit
      int getHeightLimit()
      Package:dji.common.flysafe.notification
      Description:

      Returns the height limit of current fly zone.

      Return:
      intAn int value of the height limit.
      method getFlyZoneInformation
      List<FlyZoneInformation> getFlyZoneInformation()
      Package:dji.common.flysafe.notification
      Description:

      Returns information about the fly zones.

      Return:
      List<FlyZoneInformation>A list of FlyZoneInformation objects.
      method getDescription
      String getDescription()
      Package:dji.common.flysafe.notification
      Description:

      Returns the description of fly zone warning information.

      Return:
      StringA String value.
      enum FlySafeWarningEvent
      enum FlySafeWarningEvent
      Package:dji.common.flysafe.notification
      Description:

      DJI Fly Safe warning events of fly zones.

      Enum Members:
      TAKE_OFF_FAILED_IN_NO_FLY_ZONEThe aircraft was unable to take off in the no-fly zone.
      TAKE_OFF_FAILED_IN_NO_FLY_ZONE_WITHOUT_GPSThe mobile device is in the no-fly zone, and the GPS signal of the aircraft is not good enough to take off.
      TAKE_OFF_FAILED_WITHOUT_CUSTOM_UNLOCKINGCannot take off. You have not applied to fly in this zone.
      TAKE_OFF_FAILED_IN_AUTHORIZED_AREA_WITHOUT_GPS_AND_UNLOCKINGThe mobile device is in the authorized area, and the GPS signal of the aircraft is not good, and it cannot take off before unlocking.
      TAKE_OFF_FAILED_IN_AUTHORIZED_ZONE_WITHOUT_UNLOCKINGThe aircraft is not allowed to take off before being unlocked in the authorized area.
      TAKE_OFF_FAILED_IN_AUTHORIZED_ZONEThe aircraft is in the authorized area and you have obtained a flight certificate.
      TAKE_OFF_IN_ENHANCED_WARNING_ZONEThe aircraft is in the enhanced warning zone, please pay attention to flight safety.
      TAKE_OFF_NEAR_NO_FLY_ZONEThere is a no-fly zone nearby and there are flight restrictions.
      LIMITED_RESTRICTIONS_NEARBYThere are limited restrictions in the nearby area.
      AUTHORIZED_ZONE_AND_RESTRICTIONS_NEARBYThere are authorized areas nearby and you have obtained a flight certificate.
      RESTRICTIONS_IN_LIMITED_FLY_ZONE_NEARBYThere are flight restrictions in the nearby limited flight area.
      IN_AUTHORIZATION_ZONEThe aircraft is in the authorized area and you have obtained a flight certificate.
      TAKE_OFF_FAILED_UNDER_LIMIT_AREA_WITH_GPS_ONCEThe mobile device is in the no-fly zone, and the GPS signal of the aircraft is not good enough to take off.
      UNKNOWNUnknown.
      Class Members: