android-components / mozilla.components.feature.pwa.feature / WebAppSiteControlsFeature

WebAppSiteControlsFeature

class WebAppSiteControlsFeature : LifecycleObserver (source)

Displays site controls notification for fullscreen web apps.

Parameters

sessionId - ID of the web app session to observe.

manifest - Web App Manifest reference used to populate the notification.

controlsBuilder - Customizes the created notification.

Constructors

Name Summary
<init> WebAppSiteControlsFeature(applicationContext: <ERROR CLASS>, sessionManager: SessionManager, reloadUrlUseCase: ReloadUrlUseCase, sessionId: String, manifest: WebAppManifest? = null, controlsBuilder: SiteControlsBuilder = SiteControlsBuilder.CopyAndRefresh(reloadUrlUseCase))WebAppSiteControlsFeature(applicationContext: <ERROR CLASS>, sessionManager: SessionManager, sessionId: String, manifest: WebAppManifest? = null, controlsBuilder: SiteControlsBuilder = SiteControlsBuilder.Default())
Displays site controls notification for fullscreen web apps.

Functions

Name Summary
onPause fun onPause(): Unit
onReceive fun onReceive(context: <ERROR CLASS>, intent: <ERROR CLASS>): Unit
Responds to PendingIntents fired by the site controls notification.
onResume fun onResume(): Unit

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.