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 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.

onServiceConnected

Added in 1.2.0
public final void onServiceConnected(@NonNull ComponentName name, @NonNull IBinder service)