GetSocial class

Constructors

GetSocial()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

currentUser Future<CurrentUser?>
Current user.
no setter
version → dynamic
Returns SDK version
no setter

Static Methods

addOnCurrentUserChangedListener(dynamic listener(CurrentUser)) → void
Add listener to be notified when the user was changed. The listener action is executed on the main thread, so be careful with operations, that you put inside on {@link OnCurrentUserChangedListener#onUserChanged(CurrentUser)} method. Listener will be invoked when: SDK initialization is finished;
addOnInitializedListener(Function listener) → void
Set a listener Function, which will be invoked after SDK initialized. Function will be executed immediately, if SDK is already initialized.
getLanguage() Future<String>
Current SDK language
handleAction(GetSocialAction action) → void
Handle the provided action if it's supported.
init() → void
Initialize GetSocial SDK if automatic initialization is disabled.
initWithAppId(String appId) → dynamic
Initializes GetSocial SDK with a specific AppId if automatic initialization is disabled. appId AppId from the GetSocial Dashboard to initialize with.
initWithIdentity(Identity identity) Future<void>
isInitialized() Future<bool>
Check if the SDK is initialized.
reset() Future
Reset current user without creating a new anonymous user. SDK stays uninitialized.
resetUser() Future
Reset current user and create a new anonymous one.
setLanguage(String language) Future<bool>
Set SDK language.
switchUser(Identity identity) Future
Switches the current user with the User corresponding to the details provided.