# class SDKManagerCallback

    interface SDKManagerCallback

Package: | dji.v5.manager.interfaces

##### Description:

SDKManager callback class.
`Supported since MSDK 5.0.0`

##### Class Members:

method
onInitProcess

###### method onInitProcess

    void onInitProcess(DJISDKInitEvent event, int totalProcess)

Package: | dji.v5.manager.interfaces

##### Description:

The callback method of MSDK initialization progress.
`Supported since MSDK 5.0.0`

##### Input Parameters:

DJISDKInitEvent event | Event Type
int totalProcess | Total progress.

method
onRegisterSuccess

###### method onRegisterSuccess

    void onRegisterSuccess()

Package: | dji.v5.manager.interfaces

##### Description:

The callback method after the successful registration of MSDK.
`Supported since MSDK 5.0.0`

method
onRegisterFailure

###### method onRegisterFailure

    void onRegisterFailure(IDJIError error)

Package: | dji.v5.manager.interfaces

##### Description:

Called when MSDK registration is complete. If an error occurs during registration, an error code object will be returned, and if registration is successful, the error will be `null`.
`Supported since MSDK 5.0.0`

##### Input Parameters:

IDJIError error | Error Code

method
onProductDisconnect

###### method onProductDisconnect

    void onProductDisconnect(int productId)

Package: | dji.v5.manager.interfaces

##### Description:

The callback method after the hardware device is disconnected.
`Supported since MSDK 5.0.0`

##### Input Parameters:

int productId | The product ID of the hardware device. The default is 0.

method
onProductConnect

###### method onProductConnect

    void onProductConnect(int productId)

Package: | dji.v5.manager.interfaces

##### Description:

Callback method after the hardware device is connected.
`Supported since MSDK 5.0.0`

##### Input Parameters:

int productId | The product ID of the hardware device. The default is 0.

##### Related:

enum
DJISDKInitEvent

###### enum DJISDKInitEvent

    enum  DJISDKInitEvent

Package: | dji.v5.common.register

##### Description:

The event type is initialized by MSDK.
`Supported since MSDK 5.0.0`

##### Enum Members:

START_TO_INITIALIZE | MSDK starts to initialize.
INITIALIZE_COMPLETE | MSDK completes initialization.

##### Class Members:

×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found