Custom Tab Activity Helper
This is a helper class to manage the connection to the Custom Tabs Service.
Constructors
Types
Link copied to clipboard
A Callback for when the service is connected or disconnected. Use those callbacks to handle UI changes when the service is connected or disconnected.
Link copied to clipboard
To be used as a fallback to open the Uri when Custom Tabs is not available.
Functions
Link copied to clipboard
Binds the Activity to the Custom Tabs Service.
Link copied to clipboard
Link copied to clipboard
Called when the service is connected.
Link copied to clipboard
Called when the service is disconnected.
Link copied to clipboard
fun setConnectionCallback(onConnected: () -> Unit = {}, onDisconnected: () -> Unit = {})
Content copied to clipboard
Link copied to clipboard
Unbinds the Activity from the Custom Tabs Service.
Properties
Link copied to clipboard
var connectionCallback: CustomTabActivityHelper.ConnectionCallback? = null
Content copied to clipboard