CustomTabsSessionToken

public class CustomTabsSessionToken
extends Object

java.lang.Object
   ↳ androidx.browser.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 CustomTabsSessionToken for testing purposes.

boolean equals(Object o)
CustomTabsCallback getCallback()
static CustomTabsSessionToken getSessionTokenFromIntent(Intent intent)

Obtain a CustomTabsSessionToken from an intent.

int hashCode()
boolean isAssociatedWith(CustomTabsSession session)

Inherited methods

Public methods

createMockSessionTokenForTesting

public static CustomTabsSessionToken createMockSessionTokenForTesting ()

Provides browsers a way to generate a mock CustomTabsSessionToken for testing purposes.

Returns
CustomTabsSessionToken A mock token with no functionality.