belongs to Maven artifact com.android.support:customtabs:28.0.0-alpha1
CustomTabsSessionToken
public
class
CustomTabsSessionToken
extends Object
java.lang.Object | |
↳ | android.support.customtabs.CustomTabsSessionToken |
Wrapper class that can be used as a unique identifier for a session. Also contains an accessor
for the CustomTabsCallback
for the session if there was any.
Summary
Public methods | |
---|---|
static
CustomTabsSessionToken
|
createMockSessionTokenForTesting()
Provides browsers a way to generate a mock |
boolean
|
equals(Object o)
|
CustomTabsCallback
|
getCallback()
|
static
CustomTabsSessionToken
|
getSessionTokenFromIntent(Intent intent)
Obtain a |
int
|
hashCode()
|
boolean
|
isAssociatedWith(CustomTabsSession session)
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
createMockSessionTokenForTesting
CustomTabsSessionToken createMockSessionTokenForTesting ()
Provides browsers a way to generate a mock CustomTabsSessionToken
for testing
purposes.
Returns | |
---|---|
CustomTabsSessionToken |
A mock token with no functionality. |
equals
boolean equals (Object o)
Parameters | |
---|---|
o |
Object |
Returns | |
---|---|
boolean |
getCallback
CustomTabsCallback getCallback ()
Returns | |
---|---|
CustomTabsCallback |
CustomTabsCallback corresponding to this session if there was any non-null
callbacks passed by the client.
|
getSessionTokenFromIntent
CustomTabsSessionToken getSessionTokenFromIntent (Intent intent)
Obtain a CustomTabsSessionToken
from an intent. See CustomTabsIntent.Builder
for ways to generate an intent for custom tabs.
Parameters | |
---|---|
intent |
Intent : The intent to generate the token from. This has to include an extra for
EXTRA_SESSION . |
Returns | |
---|---|
CustomTabsSessionToken |
The token that was generated. |
hashCode
int hashCode ()
Returns | |
---|---|
int |
isAssociatedWith
boolean isAssociatedWith (CustomTabsSession session)
Parameters | |
---|---|
session |
CustomTabsSession |
Returns | |
---|---|
boolean |
Whether this token is associated with the given session. |
Annotations
Classes
- CustomTabsCallback
- CustomTabsClient
- CustomTabsIntent
- CustomTabsIntent.Builder
- CustomTabsService
- CustomTabsServiceConnection
- CustomTabsSession
- CustomTabsSessionToken
- PostMessageService
- PostMessageServiceConnection
- R
- R.anim
- R.attr
- R.bool
- R.color
- R.dimen
- R.drawable
- R.id
- R.integer
- R.layout
- R.string
- R.style
- R.styleable
- TrustedWebUtils