API reference
API reference
Select your platform
No SDKs available
No versions available

DeleteListenerHolder Class

Modifiers: final
Holder class for delete listeners that allows weak reference semantics. When a CachedQuery goes out of scope, the weak reference to its DeleteListenerHolder will be automatically cleaned up during the next delete notification.

Signature

class DeleteListenerHolder(val listener: (Long) -> Unit)

Constructors

DeleteListenerHolder ( listener )
Signature
constructor(listener: (Long) -> Unit)
Parameters
listener: Function1

Properties

listener : Function1
[Get]
Signature
val listener: (Long) -> Unit

Functions

invoke ( entityId )
Signature
operator fun invoke(entityId: Long)
Parameters
entityId: Long