setCategories

@NonNull
open fun setCategories(@NonNull categories: @NonNull Set<String>): @NonNull ShortcutInfoCompat.Builder(source)

Sets categories for a shortcut.

  • Launcher apps may use this information to categorize shortcuts
  • Used by the system to associate a published Sharing Shortcut with supported mimeTypes. Required for published Sharing Shortcuts with a matching category declared in share targets, defined in the app's manifest linked shortcuts xml file.

See also