Class

ThrottledCallbacks.Entry

Entry for a throttled callback for RelativeLayoutBounds associated to the given node.

Source set: Common
inner class Entry(
        val id: Int,
        val throttleMillis: Long,
        val debounceMillis: Long,
        val node: DelegatableNode,
        val callback: (RelativeLayoutBounds) -> Unit,
    ) : RegistrationHandle

Entry for a throttled callback for RelativeLayoutBounds associated to the given node.

Supports a linked-list structure for multiple callbacks on the same node through next.

Properties

next

Source set: Common
var next: Entry?

topLeft

Source set: Common
var topLeft: Long

bottomRight

Source set: Common
var bottomRight: Long

lastInvokeMillis

Source set: Common
var lastInvokeMillis: Long

lastUninvokedFireMillis

Source set: Common
var lastUninvokedFireMillis: Long

Functions

fire

fun fire(
            topLeft: Long,
            bottomRight: Long,
            windowOffset: IntOffset,
            screenOffset: IntOffset,
            viewToWindowMatrix: Matrix?,
        )

Last updated: