Learn how to set up a room connection for your MeshAgent.
RoomConnectionScope
is a widget that manages the connection lifecycle for a MeshAgent RoomClient
.
authorize
(function): A callback that returns a Future<RoomConnectionInfo>
for authorization.builder
(function): A callback that takes the current context and the new instance of RoomClient
.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.Widget
: A widget that builds based on the state of the room connection.