createPinnedShortcut

@RequiresPermission(value = "com.android.launcher.permission.INSTALL_SHORTCUT")
@RequiresApi(value = 26)
fun createPinnedShortcut(shortcutId: String, shortcutName: String? = null, shortcutIcon: Bitmap? = null, shortcutResultIntent: (Intent) -> PendingIntent? = null, shortcutContext: Context? = null, shortcutIntent: () -> Intent)

Creating a pinned shortcut for your app.

Since

0.5.1

Parameters

shortcutId

Only id for shortcut.

shortcutName

The default value of the AppUtils.getAppName.

shortcutIcon

The default value of the AppUtils.getAppBitmap.

shortcutResultIntent

Throws