CustomTabsServiceConnection
abstract class CustomTabsServiceConnection : ServiceConnection
kotlin.Any | |
↳ | androidx.browser.customtabs.CustomTabsServiceConnection |
Abstract ServiceConnection
to use while binding to a CustomTabsService
. Any client implementing this is responsible for handling changes related with the lifetime of the connection like rebinding on disconnect.
Summary
Public constructors | |
---|---|
<init>() Abstract |
Public methods | |
---|---|
abstract Unit |
onCustomTabsServiceConnected(@NonNull name: ComponentName, @NonNull client: CustomTabsClient) Called when a connection to the |
Unit |
onServiceConnected(@NonNull name: ComponentName, @NonNull service: IBinder) |
Public constructors
<init>
CustomTabsServiceConnection()
Abstract ServiceConnection
to use while binding to a CustomTabsService
. Any client implementing this is responsible for handling changes related with the lifetime of the connection like rebinding on disconnect.
Public methods
onCustomTabsServiceConnected
abstract fun onCustomTabsServiceConnected(
@NonNull name: ComponentName,
@NonNull client: CustomTabsClient
): Unit
Called when a connection to the CustomTabsService
has been established.
Parameters | |
---|---|
name |
ComponentName: The concrete component name of the service that has been connected. |
client |
CustomTabsClient: CustomTabsClient that contains the IBinder with which the connection have been established. All further communication should be initiated using this client. |
onServiceConnected
fun onServiceConnected(
@NonNull name: ComponentName,
@NonNull service: IBinder
): Unit