EntityHook

object EntityHook

Class responsible for providing functions that expose EntityChange state logic and entity lifecycle features for alerting triggers or customizing additional functionality.

Functions

Link copied to clipboard
fun subscribe(action: (EntityChange) -> Unit): (EntityChange) -> Unit

Registers a specific state-change action for alerts and returns the action.

Link copied to clipboard
fun unsubscribe(action: (EntityChange) -> Unit)

Unregisters a specific state-change action from alerts.