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

CustomTabIntentProcessor

class CustomTabIntentProcessor : IntentProcessor (source)

Processor for intents which trigger actions related to custom tabs.

Constructors

Name Summary
<init> CustomTabIntentProcessor(sessionManager: SessionManager, loadUrlUseCase: DefaultLoadUrlUseCase, resources: <ERROR CLASS>, isPrivate: Boolean = false)
Processor for intents which trigger actions related to custom tabs.

Functions

Name Summary
matches fun matches(intent: <ERROR CLASS>): Boolean
Returns true if this intent processor will handle the intent.
process suspend fun process(intent: <ERROR CLASS>): Boolean
Processes the given Intent.

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.