android-components / mozilla.components.feature.intent.processing / TabIntentProcessor

TabIntentProcessor

class TabIntentProcessor : IntentProcessor (source)

Processor for intents which should trigger session-related actions.

Constructors

Name Summary
<init> TabIntentProcessor(sessionManager: SessionManager, loadUrlUseCase: DefaultLoadUrlUseCase, newTabSearchUseCase: NewTabSearchUseCase, openNewTab: Boolean = true, isPrivate: Boolean = false)
Processor for intents which should trigger session-related actions.

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 by invoking the registered handler.

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.