class DJIBeacon
@interface DJIBeacon : 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
|
Description:
Determines if the beacon is enabled.
BOOL enabled | Check if Beacon is enabled. |
NSError *_Nullable error | Error to receive the result. |
void (^)(BOOL enabled, NSError *_Nullable error) completion | Completion block to receive the result. |
method setEnabled:withCompletion
- (void)setEnabled:(BOOL)enabled withCompletion:(DJICompletionBlock)completion
|
Description:
Enables the beacon to turn it on. The beacon will start blink.
BOOL enabled | YES to turn on the beacon. |
DJICompletionBlock completion | Completion block to receive the result. |