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

AddToHomescreenUseCase

class AddToHomescreenUseCase (source)

Let the user add the selected session to the homescreen.

If the selected session represents a Progressive Web App, then the manifest will be saved and the web app will be launched based on the manifest values.

Otherwise, the pinned shortcut will act like a simple bookmark for the site.

Functions

Name Summary
invoke operator suspend fun invoke(overrideBasicShortcutName: String? = null): Unit