createShortcutResultIntent
open fun createShortcutResultIntent(@NonNull context: Context, @NonNull shortcut: ShortcutInfoCompat): Intent(source)
Returns an Intent which can be used by the launcher to pin shortcut.
This should be used by an Activity to set result in response to ACTION_CREATE_SHORTCUT.
Return
the intent that should be set as the result for the calling activity
Parameters
context
context to use for the intent.
shortcut
new shortcut to pin