SessionInfoIntentEncoder
class SessionInfoIntentEncoder
Helper to encode and decode a SessionInfo from an Intent
Summary
Public functions |
|
|---|---|
java-static Boolean |
containsSessionInfo(intent: Intent)Returns whether or not the given |
java-static SessionInfo |
Decodes a new |
java-static Unit |
encode(sessionInfo: SessionInfo, intent: Intent)Sets the unique identifier for the given |
Public functions
containsSessionInfo
java-static fun containsSessionInfo(intent: Intent): Boolean
Returns whether or not the given intent contains an encoded SessionInfo.
decode
java-static fun decode(intent: Intent): SessionInfo
Decodes a new SessionInfo for a given intent
encode
java-static fun encode(sessionInfo: SessionInfo, intent: Intent): Unit
Sets the unique identifier for the given intent and encodes the passed SessionInfo in its extras.
The intent identifier that's created is unique based on toString. The Intent field that's set is either setIdentifier on API 29 and above, or setData.