Flutter SDK
Room Connection
Learn how to set up a room connection for your MeshAgent.
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.
Example
Was this page helpful?