getDynamicShortcuts

@NonNull
open fun getDynamicShortcuts(@NonNull context: @NonNull Context): @NonNull List<ShortcutInfoCompat>(source)

Return all dynamic shortcuts from the caller app.

This API is intended to be used for examining what shortcuts are currently published. Re-publishing returned ShortcutInfos via APIs such as addDynamicShortcuts may cause loss of information such as icons.