AuthTabSessionToken


@ExperimentalAuthTab
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

equals

fun equals(o: Any!): Boolean

getCallback

Added in 1.9.0-alpha01
fun getCallback(): AuthTabCallback?
Returns
AuthTabCallback?

AuthTabCallback corresponding to this session if there was any non-null callbacks passed by the client.

getId

Added in 1.9.0-alpha01
fun getId(): PendingIntent?
Returns
PendingIntent?

The session id corresponding to this session, null if there is none.

getSessionTokenFromIntent

Added in 1.9.0-alpha01
java-static fun getSessionTokenFromIntent(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 EXTRA_SESSION.

Returns
AuthTabSessionToken?

The token that was generated.

hasId

Added in 1.9.0-alpha01
fun hasId(): Boolean
Returns
Boolean

Whether this token is associated with a session id.

hashCode

fun hashCode(): Int

isAssociatedWith

Added in 1.9.0-alpha01
fun isAssociatedWith(session: AuthTabSession): Boolean
Returns
Boolean

Whether this token is associated with the given session.