DJI Mobile SDK Documentation

      class AuthorizationInfo

      @EXClassNullAway
      class AuthorizationInfo
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.CONNECT_TO_MASTER_WITH_ID
      Description:

      Joins the master remote controller with the specific ID. If the remote controller has joined the same master before, the authentication code is not required until the master remote controller changes its authentication code. In this case, code can be null. It can only be called when the remote controller is in slave mode. It is only supported by Inspire 2.

      Class Members:
      Get Master Id
      method
      method getMasterId
      String getMasterId()
      Package:dji.common.remotecontroller
      Description:

      Get ID of the master remote controller to join.

      Return:
      StringAn instance of String.
      Set Master Id
      method
      method setMasterId
      void setMasterId(String masterId)
      Package:dji.common.remotecontroller
      Description:

      Set the id of the master remote controller to join.

      Input Parameters:
      String masterIdID of the master remote controller to join.
      Get Auth Code
      method
      method getAuthCode
      String getAuthCode()
      Package:dji.common.remotecontroller
      Description:

      Authentication code to join the master remote controller.

      Return:
      StringAn instance of String.
      Set Auth Code
      method
      method setAuthCode
      void setAuthCode(String authCode)
      Package:dji.common.remotecontroller
      Description:

      The mobile device connected to the slave remote controller must know the authorization code of the master remote controller. The master remote controller code is set by using the setMasterAuthorizationCode method.

      Input Parameters:
      String authCodeAuthentication code to join the master remote controller.