{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class IdlingPolicy
Allows users to control idling idleTimeouts in Espresso.
Public fields |
|
|---|---|
final boolean |
|
final long |
|
final boolean |
|
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
boolean |
|
long |
The amount of time the policy allows a resource to be non-idle. |
TimeUnit |
The unit for |
boolean |
When true, timeouts should occur even if a debugger is attached to the VM. |
void |
handleTimeout(List<String> busyResources, String message)Invoked when the idle idleTimeout has been exceeded. |
public long getIdleTimeout()
The amount of time the policy allows a resource to be non-idle.
public boolean getTimeoutIfDebuggerAttached()
When true, timeouts should occur even if a debugger is attached to the VM. When false, they should be suppressed.