AuthTabSessionToken
class AuthTabSessionToken
Wrapper class that can be used as a unique identifier for a session. Also contains an accessor for the AuthTabCallback for the session if there was any.
Summary
Public functions |
|
|---|---|
java-static AuthTabSessionToken? |
createSessionTokenFromIntent(intent: Intent)Obtain an |
Boolean |
|
AuthTabCallback? |
|
PendingIntent? |
getId() |
Boolean |
hasId() |
Int |
hashCode() |
Boolean |
isAssociatedWith(session: AuthTabSession) |
Public functions
createSessionTokenFromIntent
java-static fun createSessionTokenFromIntent(intent: Intent): AuthTabSessionToken?
Obtain an AuthTabSessionToken from an intent. See AuthTabIntent.Builder for ways to generate an intent for Auth Tabs.
| Parameters | |
|---|---|
intent: Intent |
The intent to generate the token from. This has to include an extra for |
| Returns | |
|---|---|
AuthTabSessionToken? |
The token that was generated. |
getCallback
fun getCallback(): AuthTabCallback?
| Returns | |
|---|---|
AuthTabCallback? |
|
getId
fun getId(): PendingIntent?
| Returns | |
|---|---|
PendingIntent? |
The session id corresponding to this session, null if there is none. |
hasId
fun hasId(): Boolean
| Returns | |
|---|---|
Boolean |
Whether this token is associated with a session id. |
isAssociatedWith
fun isAssociatedWith(session: AuthTabSession): Boolean
| Returns | |
|---|---|
Boolean |
Whether this token is associated with the given session. |