java.lang.Object | |
↳ | android.support.customtabs.CustomTabsClient |
Class to communicate with a CustomTabsService
and create
CustomTabsSession
from it.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Bind to a
CustomTabsService using the given package name and
ServiceConnection .
| |||||||||||
Creates a new session through an ICustomTabsService with the optional callback.
| |||||||||||
Warm up the browser process.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Bind to a CustomTabsService
using the given package name and
ServiceConnection
.
context | Context to use while calling
bindService(Intent, ServiceConnection, int) |
---|---|
packageName | Package name to set on the Intent for binding. |
connection | CustomTabsServiceConnection to use when binding. This will
return a CustomTabsClient on
#onCustomTabsServiceConnected(ComponentName, CustomTabsClient) |
Creates a new session through an ICustomTabsService with the optional callback. This session can be used to associate any related communication through the service with an intent and then later with a Custom Tab. The client can then send later service calls or intents to through same session-intent-Custom Tab association.
callback | The callback through which the client will receive updates about the created session. Can be null. |
---|
mayLaunchUrl(Uri, Bundle, List)
calls.
Null on error.
Warm up the browser process.
flags | Reserved for future use. |
---|