DJI Mobile SDK Documentation

      class ISDKManager

      interface ISDKManager
      Package:dji.v5.manager.interfaces
      Description:

      Class that is used for SDK management. It is used to initialize and register to SDK, connect to product, get product information. Also it can get the other manager classes and debug tools.

      Supported since MSDK 5.0.0

      Class Members:
      method
      method init
      void init(Context context, @NonNull SDKManagerCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      MSDK is initialized, and the MSDK internal module initialization operation is performed. After the initialization is completed, registerApp needs to be called to perform the MSDK registration operation.

      Supported since MSDK 5.0.0

      Input Parameters:
      Context contextContext instance applied.
      @NonNull SDKManagerCallback callbackreturn callback of the execution result.
      method isRegistered
      boolean isRegistered()
      Package:dji.v5.manager.interfaces
      Description:

      Get MSDK registration status. true means that the MSDK has been registered successfully.

      Supported since MSDK 5.0.0

      Return:
      booleantrue means that the MSDK has been registered successfully.
      method registerApp
      void registerApp()
      Package:dji.v5.manager.interfaces
      Description:

      MSDK registration, MSDK connects to the DJI server through the Internet to verify the APP KEY applied by the developer on the official website. This method needs to be called after the INITIALIZE_COMPLETE event is returned in the onInitProcess method. Whether the registration is successful or the registration fails, it will be returned in SDKManagerCallback. After successful registration, MSDK will automatically start to connect to the hardware product. If the hardware product connection is successful, the onProductConnect method will be called back.
      Notice:
      1. If the developer uses the offline license file method to open LDM before init, the registration operation can be completed without connecting to the Internet.
      2. If you use the method of downloading the license file from the Internet to enable LDM, you need to pass in MSDK_INIT_AND_REGISTRATION to enableLDM, in order to connect to the DJI server through the Internet to verify the APP KEY and complete the registration process.
      3. After MSDK is successfully registered, the registration information will be cached locally. When MSDK is started again, MSDK will verify the locally cached information to complete the registration process without connecting to the Internet. It is not necessary to perform online registration again until the application is reinstalled to complete the registration process.


      Supported since MSDK 5.0.0

      method getSDKVersion
      String getSDKVersion()
      Package:dji.v5.manager.interfaces
      Description:

      Get the MSDK version number.

      Supported since MSDK 5.0.0

      Return:
      StringReturn the MSDK version number.
      method getProductCategory
      PackageProductCategory getProductCategory()
      Package:dji.v5.manager.interfaces
      Description:

      Get the MSDK package type.

      Supported since MSDK 5.0.0

      Return:
      PackageProductCategoryReturn the MSDK package type.
      enum PackageProductCategory
      enum PackageProductCategory
      Package:dji.v5.common.register
      Description:

      MSDK package type.

      Supported since MSDK 5.0.0

      Enum Members:
      AIRCRAFTAircraft category, this MSDK package only contains all aircraft supported by MSDK.
      HANDHELDHandheld category, this MSDK package only contains all handhelds supported by MSDK.
      ALLAll categories, this MSDK package contains all DJI products supported by MSDK.
      Class Members: