MagxClient class

Constructors

MagxClient(MagxClientParams params, {TokenStorage? tokenStorage, Client? client, Iterable interceptors = const []})

Properties

address String?
getter/setter pair
api ↔ MagxApiClient
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
port num?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure bool
getter/setter pair
tokenStorage TokenStorage?
final
transport ConnectionBuilder
final
uri String
no setter

Methods

authenticateApple({required String accessToken, String? fmsToken}) Future<Response<Authentication>>
authenticateGoogle({required String accessToken, String? fmsToken}) Future<Response<Authentication>>
authenticateGuest({required String deviceId, String? fmsToken}) Future<Response<Authentication>>
connect(String id, {bool? reconnect, Map<String, dynamic>? options}) Future<Room?>
create(String name, {Map<String, dynamic>? options}) Future<Response<RoomData?>>
createAndConnect(String name, {Map<String, dynamic>? options}) Future<Response<Room>>
getRoom(String id) Future<Response<RoomDescription>>
getRooms([List<String>? names]) Future<Response<Iterable<RoomDescription>>>
leaveRoom(String id) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verify({String? token}) Future<Response<Authentication>>

Operators

operator ==(Object other) bool
The equality operator.
inherited