snippets

abstract fun snippets(): Flow<List<TWSSnippet>?>

Retrieves the list of snippets as a flow of data only. Use collectAsStateWithLifecycle to automatically start and stop data collection based on the lifecycle.

Return

A Flow emitting the current list of snippets, cached, remote or null if unavailable.


abstract val snippets: Flow<TWSOutcome<List<TWSSnippet>>>

A flow that combines remote snippets with local properties to keep the data in sync and up-to-date. Use collectAsStateWithLifecycle to automatically start and stop data collection based on the lifecycle.