android-components / mozilla.components.feature.customtabs / AbstractCustomTabsService


abstract class AbstractCustomTabsService : CustomTabsService (source)

Service providing Custom Tabs related functionality.


Name Summary
<init> AbstractCustomTabsService()
Service providing Custom Tabs related functionality.


Name Summary
apiKey open val apiKey: String?
customTabsServiceStore open val customTabsServiceStore: CustomTabsServiceStore?
engine abstract val engine: Engine
httpClient open val httpClient: Client?


Name Summary
extraCommand open fun extraCommand(commandName: String, args: <ERROR CLASS>?): <ERROR CLASS>?
mayLaunchUrl open fun mayLaunchUrl(sessionToken: CustomTabsSessionToken, url: <ERROR CLASS>, extras: <ERROR CLASS>?, otherLikelyBundles: List<<ERROR CLASS>>?): Boolean
newSession open fun newSession(sessionToken: CustomTabsSessionToken): Boolean
Saves the package name of the app creating the custom tab when a new session is started.
onDestroy open fun onDestroy(): Unit
postMessage open fun postMessage(sessionToken: CustomTabsSessionToken, message: String, extras: <ERROR CLASS>?): Int
receiveFile open fun receiveFile(sessionToken: CustomTabsSessionToken, uri: <ERROR CLASS>, purpose: Int, extras: <ERROR CLASS>?): Boolean
requestPostMessageChannel open fun requestPostMessageChannel(sessionToken: CustomTabsSessionToken, postMessageOrigin: <ERROR CLASS>): Boolean
updateVisuals open fun updateVisuals(sessionToken: CustomTabsSessionToken, bundle: <ERROR CLASS>?): Boolean
validateRelationship open fun validateRelationship(sessionToken: CustomTabsSessionToken, relation: Int, origin: <ERROR CLASS>, extras: <ERROR CLASS>?): Boolean
warmup open fun warmup(flags: Long): Boolean

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.