getTriggerFlow

fun getTriggerFlow(propertyPath: String): Flow<Unit>

Creates or retrieves from cache a trigger property, represented as a cold Flow. Triggers emit Unit as the value, which simply indicates that the trigger has been fired.

The collection of the flow may cause an exception. See getNumberFlow for details.

Return

A cold Flow of Unit values representing trigger events.

Parameters

propertyPath

The path to the trigger property from this view model instance. Slash delimited to refer to nested properties.

See also