Description
RoomConnectionScope
is a widget that manages the connection lifecycle for a MeshAgent RoomClient
.
- Parameters:
authorize
(function): A callback that returns aFuture<RoomConnectionInfo>
for authorization.builder
(function): A callback that takes the current context and the new instance ofRoomClient
.authorizingBuilder
(optional function): A callback for rendering while authorizing.doneBuilder
(optional function): A callback for rendering when the connection is done or encounters an error.
- Returns:
Widget
: A widget that builds based on the state of the room connection.