setActivity

@NonNull
open fun setActivity(@NonNull activity: @NonNull ComponentName): @NonNull ShortcutInfoCompat.Builder(source)

Sets the target activity. A shortcut will be shown along with this activity's icon on the launcher.

See also