DJI Mobile SDK Documentation

      class FlySafeWarningInformation

      class FlySafeWarningInformation
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Fly safety warning information. Including the event enumeration and description of fly safety warning information, height limit and fly zone information.

      Supported since MSDK 5.3.0

      Class Members:
      method
      method getEvent
      FlySafeWarningEvent getEvent()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the event of fly safety warning.

      Supported since MSDK 5.3.0

      Return:
      FlySafeWarningEventReturns the event of fly safety warning.
      method getDescription
      String getDescription()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the description of fly safety warning.

      Supported since MSDK 5.3.0

      Return:
      StringReturns the description of fly safety warning.
      method getHeightLimit
      int getHeightLimit()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the height limit of current fly zone. Returns 0 if not in the height limit zone.

      Supported since MSDK 5.3.0

      Return:
      intReturns the height limit of current fly zone.
      method getFlyZoneInformation
      List<FlyZoneInformation> getFlyZoneInformation()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets information about the fly zones. Returns null if not in a restricted fly zone.

      Supported since MSDK 5.3.0

      Return:
      List<FlyZoneInformation>Returns information about the fly zones.