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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(UiAutomation uiAutomation, Looper looper) Connects the RemoteControl to the Simulator.voiddisconnect(Duration timeout) Disconnects the RemoteControl, shutting down any running jobs within the timeout.voidonCycle(long uptimeNanos) Informs the RemoteControl that the Simulator has gone through another cycle.
-
Constructor Details
-
NoOpRemoteControl
public NoOpRemoteControl()
-
-
Method Details
-
connect
Description copied from interface:RemoteControlConnects the RemoteControl to the Simulator.- Specified by:
connectin interfaceRemoteControl
-
onCycle
public void onCycle(long uptimeNanos) Description copied from interface:RemoteControlInforms 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:
onCyclein interfaceRemoteControl- Parameters:
uptimeNanos- Current uptime.
-
disconnect
Description copied from interface:RemoteControlDisconnects the RemoteControl, shutting down any running jobs within the timeout.- Specified by:
disconnectin interfaceRemoteControl
-