DJI Mobile SDK Documentation

      class ISimulatorManager

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

      Class that is used for managing simulator. It can be used to enable/disable, set up parameters/listeners for simulator.

      Supported since MSDK 5.0.0

      Class Members:
      method isSimulatorEnabled
      boolean isSimulatorEnabled()
      Package:dji.v5.manager.interfaces
      Description:

      To get whether the simulator is turned on.

      Supported since MSDK 5.0.0

      Return:
      booleantrue means that the simulator is turned on.
      method enableSimulator
      void enableSimulator(@NonNull final InitializationSettings settings, @Nullable final CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      Turn on the simulator.

      Supported since MSDK 5.0.0

      Input Parameters:
      @NonNull final InitializationSettings settingsInitialized parameter of simulator.
      @Nullable final CommonCallbacks.CompletionCallback callbackReturn the callback of execution result.
      method disableSimulator
      void disableSimulator(@Nullable final CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      Turn off the simulator.

      Supported since MSDK 5.0.0

      Input Parameters:
      @Nullable final CommonCallbacks.CompletionCallback callbackReturn the callback of execution result.
      method addSimulatorStateListener
      void addSimulatorStateListener(@NonNull SimulatorStatusListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      To set the listener of the simulator status.

      Supported since MSDK 5.0.0

      Input Parameters:
      @NonNull SimulatorStatusListener listenerListener of the simulator status.
      method removeSimulatorStateListener
      void removeSimulatorStateListener(@NonNull SimulatorStatusListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove the listener of the simulator status.

      Supported since MSDK 5.0.0

      Input Parameters:
      @NonNull SimulatorStatusListener listenerListener of the simulator status.
      method clearAllSimulatorStateListener
      void clearAllSimulatorStateListener()
      Package:dji.v5.manager.interfaces
      Description:

      Clear all listeners of the simulator status.

      Supported since MSDK 5.0.0