# 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

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

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

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

Unregisters a specific state-change action from alerts.