AuthTabSessionToken
public final 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 methods |
|
|---|---|
static @Nullable AuthTabSessionToken |
createSessionTokenFromIntent(@NonNull Intent intent)Obtain an |
boolean |
|
@Nullable AuthTabCallback |
|
@Nullable PendingIntent |
getId() |
boolean |
hasId() |
int |
hashCode() |
boolean |
isAssociatedWith(@NonNull AuthTabSession session) |
Public methods
createSessionTokenFromIntent
public static @Nullable AuthTabSessionToken createSessionTokenFromIntent(@NonNull Intent intent)
Obtain an AuthTabSessionToken from an intent. See AuthTabIntent.Builder for ways to generate an intent for Auth Tabs.
| Parameters | |
|---|---|
@NonNull Intent intent |
The intent to generate the token from. This has to include an extra for |
| Returns | |
|---|---|
@Nullable AuthTabSessionToken |
The token that was generated. |
getCallback
public @Nullable AuthTabCallback getCallback()
| Returns | |
|---|---|
@Nullable AuthTabCallback |
|
getId
public @Nullable PendingIntent getId()
| Returns | |
|---|---|
@Nullable PendingIntent |
The session id corresponding to this session, null if there is none. |
hasId
public boolean hasId()
| Returns | |
|---|---|
boolean |
Whether this token is associated with a session id. |
isAssociatedWith
public boolean isAssociatedWith(@NonNull AuthTabSession session)
| Returns | |
|---|---|
boolean |
Whether this token is associated with the given session. |