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.
      interface
      interface Callback
      interface Callback
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.MASTER_SLAVE_STATE
      Description:

      Callback function that updates the Remote Controller's master and slave state.

      Interface Methods:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(@NonNull MasterSlaveState masterSlaveState)
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.MASTER_SLAVE_STATE
      Description:

      Callback function that updates the remote controller's state related to the master and slave mode. Only supported by Inspire 2.

      Input Parameters:
      @NonNull MasterSlaveState masterSlaveStateThe remote controller's state related to the master and slave mode.