LocalitySocialCloud class

Constructors

LocalitySocialCloud()

Properties

hashCode int
The hash code for this object.
no setterinherited
loggedInUser LoggedInUser?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

appId String
getter/setter pair
appSecret String
getter/setter pair

Static Methods

auth(String userName, String password) Future<LoggedInUserOrError>
Authenticates the user, registering or logging them in with userName and password.
configure({required String appId, required String appSecret}) → void
Configures the app with the required appId and appSecret.
connect(LoggedInUser loggedInUser) → void
Establishes a connection using the loggedInUser's access token.
discoverUsers() DiscoverUsers
Initiates user discovery through the Pub/Sub system.
getAppID() String
Retrieves the configured app ID.
getAppSecret() String
Retrieves the configured app secret.
loadTopicAuths(LoggedInUser loggedInUser) TopicAuth
Loads topic authorizations for the loggedInUser.
makeGeoChannel({required String channel, required Map<String, dynamic> metadata, ChaCha20Key? chaCha20Key}) GeoChannel
supervise(PubSub pubSub, {ChaCha20Key? key}) → void
Supervise a PubSub to connect to the Locality Social Cloud, optionally using a ChaCha20Key for encryption. This will ensure that the connection status is properly managed.
up({required String appId, required String appSecret, required String username, required String password, List<PubSub>? initialPubSubs, dynamic onError(AuthError authError)?}) Future<LocalitySocialCloud>?