CustomTabsServiceConnection


public abstract class CustomTabsServiceConnection implements 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 methods

abstract void

Called when a connection to the CustomTabsService has been established.

final void

Public constructors

CustomTabsServiceConnection

Added in 1.2.0
public CustomTabsServiceConnection()

Public methods

onCustomTabsServiceConnected

Added in 1.2.0
public abstract void onCustomTabsServiceConnected(
    @NonNull ComponentName name,
    @NonNull CustomTabsClient client
)

Called when a connection to the CustomTabsService has been established.

Parameters
@NonNull ComponentName name

The concrete component name of the service that has been connected.

@NonNull CustomTabsClient client

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
public final void onServiceConnected(@NonNull ComponentName name, @NonNull IBinder service)