{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class IdlingPolicy
Allows users to control idling idleTimeouts in Espresso.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
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. |
Unit |
handleTimeout(busyResources: (Mutable)List<String!>!, message: String!)Invoked when the idle idleTimeout has been exceeded. |
fun getIdleTimeout(): Long
The amount of time the policy allows a resource to be non-idle.
fun getTimeoutIfDebuggerAttached(): Boolean
When true, timeouts should occur even if a debugger is attached to the VM. When false, they should be suppressed.