DJISDKManagerDelegate
@protocol DJISDKManagerDelegate <NSObject>
This protocol provides delegate methods to receive the updated registration status and the change of the connected product.
-
Callback delegate method after the application attempts to register.
Declaration
Objective-C
- (void)sdkManagerDidRegisterAppWithError:(NSError *_Nullable)error;Parameters
errornilif registration is successful. Otherwise it contains anNSErrorobject with error codes fromDJISDKRegistrationError. -
Called when the
productproperty changed.Declaration
Objective-C
- (void)sdkManagerProductDidChangeFrom:(DJIBaseProduct *_Nullable)oldProduct to:(DJIBaseProduct *_Nullable)newProduct;Parameters
oldProductOld product object. nil if starting up.
newProductNew product object. nil if the USB link or WiFi link between the product and phone is disconnected.
View on GitHub
DJISDKManagerDelegate Protocol Reference