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

findShortcut

fun findShortcut(context: <ERROR CLASS>, startUrl: String): Nothing? (source)

Finds the shortcut associated with the given startUrl. This method can be used to check if a web app was added to the homescreen.