CallbackRegistration

class CallbackRegistration<T : Component, C : Any, L : Any>(adapter: (current: () -> C) -> L, registration: ListenerRegistration<T, L>)

A registration together with the adapter that builds the listener riding it: what a modifier taking a callback of type C, rather than a listener of type L, registers.

Declare one per builder and hold it in a val, as for a ListenerRegistration. The callback is not part of it: a fresh callback on every pass costs one field write.

Parameters

registration

where the built listener is registered.

Constructors

Link copied to clipboard
constructor(adapter: (current: () -> C) -> L, registration: ListenerRegistration<T, L>)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int