Class NoOpRemoteControl

java.lang.Object
org.robolectric.simulator.pluginapi.NoOpRemoteControl
All Implemented Interfaces:
RemoteControl

@Priority(-2147483648) @AutoService(RemoteControl.class) public final class NoOpRemoteControl extends Object implements RemoteControl
The default [RemoteControl].
  • Constructor Details

    • NoOpRemoteControl

      public NoOpRemoteControl()
  • Method Details

    • connect

      public void connect(UiAutomation uiAutomation, Looper looper)
      Description copied from interface: RemoteControl
      Connects the RemoteControl to the Simulator.
      Specified by:
      connect in interface RemoteControl
    • onCycle

      public void onCycle(long uptimeNanos)
      Description copied from interface: RemoteControl
      Informs the RemoteControl that the Simulator has gone through another cycle.

      Since this is called in every cycle, it needs to be *fast*. Use it to signal other threads.

      Specified by:
      onCycle in interface RemoteControl
      Parameters:
      uptimeNanos - Current uptime.
    • disconnect

      public void disconnect(Duration timeout)
      Description copied from interface: RemoteControl
      Disconnects the RemoteControl, shutting down any running jobs within the timeout.
      Specified by:
      disconnect in interface RemoteControl