TWSManager
interface TWSManager
A manager interface for handling snippets, their properties, and lifecycle events.
Instances of TWSManager should be created using TWSFactory.
Example Usage
val manager = TWSFactory.get(context)
val projectSnippets = manager.snippets.collectAsStateWithLifecycle(null).value
// Use projectSnippets with TWSView or process them as needed
Content copied to clipboard
Properties
Functions
Link copied to clipboard
Forces a refresh of the snippets by reloading them from the remote source. Updates are emitted in snippets flow to all active collectors and cached for future use.
Link copied to clipboard
Retrieves the list of snippets as a flow of data only. Use collectAsStateWithLifecycle
to automatically start and stop data collection based on the lifecycle.