CustomTabsServiceConnection

abstract class CustomTabsServiceConnection : ServiceConnection


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

Public functions

abstract Unit

Called when a connection to the CustomTabsService has been established.

Unit

Public constructors

CustomTabsServiceConnection

Added in 1.2.0
CustomTabsServiceConnection()

Public functions

onCustomTabsServiceConnected

Added in 1.2.0
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: CustomTabsClient

CustomTabsClient that contains the IBinder with which the connection have been established. All further communication should be initiated using this client.

onServiceConnected

Added in 1.2.0
fun onServiceConnected(name: ComponentName, service: IBinder): Unit