android-components / mozilla.components.feature.pwa / WebAppShortcutManager / buildBasicShortcut

buildBasicShortcut

fun buildBasicShortcut(context: <ERROR CLASS>, session: Session, overrideShortcutName: String? = null): ShortcutInfoCompat (source)

Create a new basic pinned website shortcut using info from the session. Consuming SHORTCUT_CATEGORY in AndroidManifest is required for the package to be launched