getShortcuts
Returns ShortcutInfoCompats that match matchFlags
.
Return
list of ShortcutInfoCompats that match the flag.
At least one of the MATCH
flags should be set. Otherwise no shortcuts will be returned.
Parameters
matchFlags
result includes shortcuts matching this flags. Any combination of:
Compatibility behavior:- API 30 and above, this method matches platform behavior.
- API 25 through 29, this method aggregates the result from corresponding platform api.
- API 24 and earlier, this method can only returns dynamic shortcut. Calling this method with other flag will be ignored.
context
context to use for the shortcuts.
Throws
when the user is locked.