SessionManager class Null safety

Represents a object that responsible to handle session

Mixed in types

Constructors

SessionManager()

Properties

accessToken String?
read-only
appState SendbirdState
read-onlyinherited
cmdManager CommandManager
read-onlyinherited
errorFunc Function
read / write
eventManager EventManager
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
isRefreshingKey bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sdk SendbirdSdkInternal
read-onlyinherited
sessionUpdateCompleters List<Completer>
read / write
successFunc Future Function(String)
read / write
webSocket WebSocketClient?
read-onlyinherited

Methods

cleanUp() → void
flushResultCompleters(SBError error) → void
getEKey() String?
Get current eKey
getSessionKey() Future<String?>
Get current sessionKey from prefs
getUserId() String?
Get userId associate with this user session
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setAccessToken(String? accessToken) → void
setEKey(String? eKey) → void
Set a eKey that will be used to access file url where authorization is required
setSessionKey(String? sessionKey) Future<void>
Set a sessionKey that will be used for SDK globally
setSessionKeyPath(String path) → void
Set a path to store session key. Recommend to set your own path to store this path for security purpose
setUserId(String userId) → void
Set a userId associate with this user session
setUserIdKeyPath(String path) → void
Set a path to store user id key. Recommend to set your own path to store this path for security purpose
toString() String
A string representation of this object.
inherited
updateSession() Future<void>

Operators

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