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

requestPinShortcut

suspend fun requestPinShortcut(context: <ERROR CLASS>, session: Session, overrideShortcutName: String? = null): Unit (source)

Request to create a new shortcut on the home screen.

Parameters

context - The current context.

session - The session to create the shortcut for.

overrideShortcutName - (optional) The name of the shortcut. Ignored for PWAs.