Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

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 CustomTabsIntent.Builder#setColorScheme and CustomTabsIntent.Builder#setColorSchemeParams.

static String

An Intent filter category to signify that the Custom Tabs provider supports customizing the color of the navigation bar (CustomTabsIntent.Builder#setNavigationBarColor).

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 CustomTabsSession#receiveFile indicating that the file is a splash image to be shown on top of a Trusted Web Activity while the web contents are loading.

static String

The key to use to store a boolean in the returns bundle of extraCommand method, to indicate the command is executed successfully.

static String

For CustomTabsService#mayLaunchUrl calls that wants to specify more than one url, this key can be used with Bundle#putParcelable(String, android.os.Parcelable) to insert a new url to each bundle inside list of bundles.

static Int

Used for CustomTabsSession#validateRelationship(int, Uri, Bundle).

static Int

Used for CustomTabsSession#validateRelationship(int, Uri, Bundle).

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 RemoteException .

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 TrustedWebUtils for more details).

Public constructors

Abstract service class for implementing Custom Tabs related functionality.

Public methods
open IBinder
onBind(@Nullable intent: Intent?)

Protected methods
open Boolean
cleanUpSession(@NonNull sessionToken: CustomTabsSessionToken)

Called when the client side IBinder for this CustomTabsSessionToken is dead.

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, @Nullable extras: Bundle?)

Sends a postMessage request using the origin communicated via CustomTabsService#requestPostMessageChannel( *CustomTabsSessionToken, Uri).

abstract Boolean