{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

IdlingPolicy

class IdlingPolicy


Allows users to control idling idleTimeouts in Espresso.

Summary

Public constructors

Public functions

TimeUnit!

The unit for getIdleTimeout.

Unit
handleTimeout(busyResources: (Mutable)List<String!>!, message: String!)

Invoked when the idle idleTimeout has been exceeded.

Public properties

Boolean
Long
Boolean

Public constructors

IdlingPolicy

IdlingPolicy()

Public functions

getIdleTimeoutUnit

fun getIdleTimeoutUnit(): TimeUnit!

The unit for getIdleTimeout.

handleTimeout

fun handleTimeout(busyResources: (Mutable)List<String!>!, message: String!): Unit

Invoked when the idle idleTimeout has been exceeded.

Parameters
busyResources: (Mutable)List<String!>!

the resources that are not idle.

message: String!

an additional message to include in an exception.

Public properties

disableOnTimeout

val disableOnTimeoutBoolean

idleTimeout

val idleTimeoutLong

timeoutIfDebuggerAttached

val timeoutIfDebuggerAttachedBoolean