containers

abstract val containers: StateFlow<List<Container>>

A reactive hot flow of the user's room containers.

This property provides a continuously updated list of Container objects, representing the room containers associated with the user. Each Container contains relevant details, such as its ID, name, and any associated rooms.

Behavior:

  • The containers StateFlow automatically reflects changes in real-time when any events modify the user's room containers.

  • The flow starts once the user is authenticated and remains active until logout or application closure.

Usage:

  • This property can be observed within a coroutine scope to reactively handle updates to the user's room containers.

  • Use it to subscribe to container updates, ensuring your UI or other application components remain in sync with the latest container state.

Return

A StateFlow emitting a list of Container objects, updated as the user's room containers change.