createShortcutResultIntent

@NonNull
open fun createShortcutResultIntent(@NonNull context: @NonNull Context, @NonNull shortcut: @NonNull ShortcutInfoCompat): @NonNull 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

See also