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

WebAppUseCases

class WebAppUseCases (source)

These use cases allow for adding a web app or web site to the homescreen.

Types

Name Summary
AddToHomescreenUseCase class AddToHomescreenUseCase
Let the user add the selected session to the homescreen.

Constructors

Name Summary
<init> WebAppUseCases(applicationContext: <ERROR CLASS>, sessionManager: SessionManager, httpClient: Client, supportWebApps: Boolean = true)
These use cases allow for adding a web app or web site to the homescreen.

Properties

Name Summary
addToHomescreen val addToHomescreen: AddToHomescreenUseCase

Functions

Name Summary
isInstallable fun isInstallable(): Boolean
Checks to see if the current session can be installed as a Progressive Web App.
isPinningSupported fun isPinningSupported(): Boolean
Checks if the launcher supports adding shortcuts.