CustomTabsService
abstract class CustomTabsService : Service
kotlin.Any | ||||
↳ | android.content.Context | |||
↳ | android.content.ContextWrapper | |||
↳ | android.app.Service | |||
↳ | androidx.browser.customtabs.CustomTabsService |
Abstract service class for implementing Custom Tabs related functionality. The service should be responding to the action ACTION_CUSTOM_TABS_CONNECTION. This class should be used by implementers that want to provide Custom Tabs functionality, not by clients that want to launch Custom Tabs.
Summary
Nested classes | |
---|---|
Constants | |
---|---|
static String |
The Intent action that a CustomTabsService must respond to. |
static String |
An Intent filter category to signify that the Custom Tabs provider supports selecting and customizing color schemes via |
static String |
An Intent filter category to signify that the Custom Tabs provider supports customizing the color of the navigation bar ( |
static String |
An Intent filter category to signify that the Trusted Web Activity provider supports immersive mode. |
static String |
An Intent filter category to signify that the Trusted Web Activity provider supports sending shared data according to the Web Share Target v2 protocol defined in https://wicg. |
static Int |
A constant to be used with |
static String |
The key to use to store a boolean in the returns bundle of |
static String |
For |
static Int |
Used for |
static Int |
Used for |
static Int |
Indicates that the postMessage request was not allowed due to a bad argument or requesting at a disallowed time like when in background. |
static Int |
Indicates that the postMessage request has failed due to an internal error on the browser message channel. |
static Int |
Indicates that the postMessage request has failed due to a |
static Int |
Indicates that the postMessage request was accepted. |
static String |
An Intent filter category to signify that the Custom Tabs provider supports Trusted Web Activities (see |
Public constructors | |
---|---|
<init>() Abstract service class for implementing Custom Tabs related functionality. |
Public methods | |
---|---|
open IBinder |
Protected methods | |
---|---|
open Boolean |
cleanUpSession(@NonNull sessionToken: CustomTabsSessionToken) Called when the client side |
abstract Bundle? |
extraCommand(@NonNull commandName: String, @Nullable args: Bundle?) Unsupported commands that may be provided by the implementation. |
abstract Boolean |
mayLaunchUrl(@NonNull sessionToken: CustomTabsSessionToken, @Nullable url: Uri?, @Nullable extras: Bundle?, @Nullable otherLikelyBundles: MutableList<Bundle!>?) Tells the browser of a likely future navigation to a URL. |
abstract Boolean |
newSession(@NonNull sessionToken: CustomTabsSessionToken) Creates a new session through an ICustomTabsService with the optional callback. |
abstract Int |
postMessage(@NonNull sessionToken: CustomTabsSessionToken, @NonNull message: String, |