android-components / mozilla.components.feature.pwa.intent / WebAppIntentProcessor

WebAppIntentProcessor

class WebAppIntentProcessor : IntentProcessor (source)

Processor for intents which trigger actions related to web apps.

Constructors

Name Summary
<init> WebAppIntentProcessor(sessionManager: SessionManager, loadUrlUseCase: DefaultLoadUrlUseCase, storage: ManifestStorage)
Processor for intents which trigger actions related to web apps.

Functions

Name Summary
process fun process(intent: <ERROR CLASS>): Boolean
Processes the given Intent by creating a Session with a corresponding web app manifest.

Companion Object Properties

Name Summary
ACTION_VIEW_PWA const val ACTION_VIEW_PWA: String

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.