DJI Mobile SDK Documentation

      class MasterSlaveState

      @EXClassNullAway
      class MasterSlaveState
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.MASTER_SLAVE_STATE
      Description:

      State of the remote controller related to the master and slave mode.

      Class Members:
      method
      method getRcMode
      RCMode getRcMode()
      Package:dji.common.remotecontroller
      Description:

      The master/slave mode of the remote controller.

      Return:
      RCModeAn enum value of RCMode
      method isConnected
      boolean isConnected()
      Package:dji.common.remotecontroller
      Description:

      true if a slave remote controller joins a master remote controller.

      Return:
      booleanA boolean value.
      method getMasterId
      String getMasterId()
      Package:dji.common.remotecontroller
      Description:

      ID of the master remote controller.

      Return:
      StringAn instance of String.
      method getSlaveId
      String getSlaveId()
      Package:dji.common.remotecontroller
      Description:

      ID of the slave remote controller.

      Return:
      StringAn instance of String.
      method getAuthorizationCode
      String getAuthorizationCode()
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.MASTER_SLAVE_STATE
      Description:

      Authorization code of the master remote controller that is a 6 element string of numbers.

      Return:
      StringAn instance of String.
      method hasGimbalControl
      boolean hasGimbalControl()
      Package:dji.common.remotecontroller
      Description:

      true if the remote controller has gimbal control. Call requestGimbalControl to attain the gimbal control.

      Return:
      booleantrue if the remote controller has gimbal control.