DJI Mobile SDK Documentation

      class DJIBeacon

      @interface DJIBeacon : DJIBaseComponent
      Header:DJIBeacon.h
      Inherits From:DJIBaseComponent
      Description:

      The class represents the beacon accessory mounted on the aircraft.

      Class Members:

      Members

      method getEnabledWithCompletion
      - (void)getEnabledWithCompletion:(void (^)(BOOL enabled, NSError *_Nullable error))completion
      Header:DJIBeacon.h
      Description:

      Determines if the beacon is enabled.

      Input Parameters:
      BOOL enabledCheck if Beacon is enabled.
      NSError *_Nullable errorError to receive the result.
      void (^)(BOOL enabled, NSError *_Nullable error) completionCompletion block to receive the result.
      method setEnabled:withCompletion
      - (void)setEnabled:(BOOL)enabled withCompletion:(DJICompletionBlock)completion
      Header:DJIBeacon.h
      Description:

      Enables the beacon to turn it on. The beacon will start blink.

      Input Parameters:
      BOOL enabledYES to turn on the beacon.
      DJICompletionBlock completionCompletion block to receive the result.