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

    error

    nil if registration is successful. Otherwise it contains an NSError object with error codes from DJISDKRegistrationError.

  • Called when the product property changed.

    Declaration

    Objective-C

    - (void)sdkManagerProductDidChangeFrom:(DJIBaseProduct *_Nullable)oldProduct
                                        to:(DJIBaseProduct *_Nullable)newProduct;

    Parameters

    oldProduct

    Old product object. nil if starting up.

    newProduct

    New product object. nil if the USB link or WiFi link between the product and phone is disconnected.