AccessWatcher

@ApiStatus.Experimental
@ApiStatus.AvailableSince(value = "5.0.0")
class AccessWatcher : ReadOnlyProperty<Any?, Boolean>

A delegate that will monitor its access, and if ReadOnlyProperty.getValue is called count within delay, it will return a true value.

Parameters

delay

The duration of time that if count calls are received within will result in a true result.

count

The amount of access calls required to return a true state.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): Boolean