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

Public methods
abstract Unit

Called when a connection to the CustomTabsService has been established.

Unit

Public constructors

<init>

CustomTabsServiceConnection()

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