getEnumFlow

fun getEnumFlow(propertyPath: String): Flow<String>

Creates or retrieves from cache an enum property, represented as a cold Flow. Enums are represented as strings, and this flow will emit the string value of the enum.

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

Return

A cold Flow of String values representing the enum property.

Parameters

propertyPath

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

See also