DJIBaseComponent
@interface DJIBaseComponent : NSObject
Abstract class for components in a DJI Product. A component can be a camera, gimbal, remote controller, etc. A DJI product consists of several components.
-
Use this delegate to be notified about connectivity status changes.
Declaration
Objective-C
@property (readwrite, nonatomic) id<DJIComponentConnectivityDelegate> _Nullable connectivityDelegate;
-
The connectivity status of the component.
Declaration
Objective-C
@property (readonly, getter=isConnected, assign, nonatomic) BOOL connected;
-
The product to which this component is connected.
Declaration
Objective-C
@property (readonly, nonatomic) DJIBaseProduct *_Nullable product;
-
Get the component’s firmware version.
Declaration
Objective-C
- (void)getFirmwareVersionWithCompletion: (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))block;
-
Get the serial number of the component. Note that this serial number does not match the serial number found on the physical component.
Declaration
Objective-C
- (void)getLegacySerialNumberWithCompletion: (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))block;
Parameters
block
Completion block that receives the getter result.
-
Get the serial number of the component.
Declaration
Objective-C
- (void)getSerialNumberWithCompletion: (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))block;
Parameters
block
Completion block that receives the getter result.