GetSocial class Null safety

Constructors

GetSocial()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
read-only
version → dynamic
Returns SDK version
read-only

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.
initWithIdentity(Identity identity) Future<void>
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. [...]