Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

Abstract ServiceConnection to use while binding to a CustomTabsService.

Public methods

abstract Unit

Called when a connection to the CustomTabsService has been established.

Unit

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(name: ComponentName!, 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 ComponentName!: CustomTabsClient that contains the IBinder with which the connection have been established. All further communication should be initiated using this client.

onServiceConnected

fun onServiceConnected(name: ComponentName!, service: IBinder!): Unit