public abstract class ShortcutServiceInternal extends Object
LauncherApps
.
No permission / argument checks will be performed inside. Callers must check the calling app permission and the calling package name.
Modifier and Type | Class and Description |
---|---|
static interface |
ShortcutServiceInternal.ShortcutChangeListener |
Constructor and Description |
---|
ShortcutServiceInternal() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addListener(ShortcutServiceInternal.ShortcutChangeListener listener) |
abstract Intent[] |
createShortcutIntents(int launcherUserId,
String callingPackage,
String packageName,
String shortcutId,
int userId) |
abstract ParcelFileDescriptor |
getShortcutIconFd(int launcherUserId,
String callingPackage,
String packageName,
String shortcutId,
int userId) |
abstract int |
getShortcutIconResId(int launcherUserId,
String callingPackage,
String packageName,
String shortcutId,
int userId) |
abstract List<ShortcutInfo> |
getShortcuts(int launcherUserId,
String callingPackage,
long changedSince,
String packageName,
List<String> shortcutIds,
ComponentName componentName,
int flags,
int userId) |
abstract boolean |
hasShortcutHostPermission(int launcherUserId,
String callingPackage) |
abstract boolean |
isPinnedByCaller(int launcherUserId,
String callingPackage,
String packageName,
String id,
int userId) |
abstract void |
pinShortcuts(int launcherUserId,
String callingPackage,
String packageName,
List<String> shortcutIds,
int userId) |
public abstract List<ShortcutInfo> getShortcuts(int launcherUserId, String callingPackage, long changedSince, String packageName, List<String> shortcutIds, ComponentName componentName, int flags, int userId)
public abstract boolean isPinnedByCaller(int launcherUserId, String callingPackage, String packageName, String id, int userId)
public abstract void pinShortcuts(int launcherUserId, String callingPackage, String packageName, List<String> shortcutIds, int userId)
public abstract Intent[] createShortcutIntents(int launcherUserId, String callingPackage, String packageName, String shortcutId, int userId)
public abstract void addListener(ShortcutServiceInternal.ShortcutChangeListener listener)
public abstract int getShortcutIconResId(int launcherUserId, String callingPackage, String packageName, String shortcutId, int userId)
public abstract ParcelFileDescriptor getShortcutIconFd(int launcherUserId, String callingPackage, String packageName, String shortcutId, int userId)
public abstract boolean hasShortcutHostPermission(int launcherUserId, String callingPackage)