Karoo System Service
Karoo System Service for interaction with Karoo-specific state and hardware.
Samples
karooSystemUsageProperties
Functions
Link copied to clipboard
inline fun <T : KarooEvent> addConsumer(noinline onError: (String) -> Unit? = null, noinline onComplete: () -> Unit? = null, noinline onEvent: (T) -> Unit): String
Register a listener to events or state changes as they happen.
inline fun <T : KarooEvent> addConsumer(params: KarooEventParams, noinline onError: (String) -> Unit? = null, noinline onComplete: () -> Unit? = null, noinline onEvent: (T) -> Unit): String
Register a listener with params to events or state changes as they happen.
Link copied to clipboard
Disconnect from KarooSystem and unregister all consumers
Link copied to clipboard
Send a KarooEffect to the Karoo System service for handling.
Link copied to clipboard
Unregister a consume from events.