public class PreviewInflater extends Object
Constructor and Description |
---|
PreviewInflater(Context context,
LockPatternUtils lockPatternUtils) |
Modifier and Type | Method and Description |
---|---|
static ActivityInfo |
getTargetActivityInfo(Context ctx,
Intent intent,
int currentUserId,
boolean onlyDirectBootAware) |
View |
inflatePreview(Intent intent) |
View |
inflatePreviewFromService(ComponentName componentName) |
static boolean |
wouldLaunchResolverActivity(Context ctx,
Intent intent,
int currentUserId) |
public PreviewInflater(Context context, LockPatternUtils lockPatternUtils)
public View inflatePreviewFromService(ComponentName componentName)
public static boolean wouldLaunchResolverActivity(Context ctx, Intent intent, int currentUserId)
public static ActivityInfo getTargetActivityInfo(Context ctx, Intent intent, int currentUserId, boolean onlyDirectBootAware)
onlyDirectBootAware
- a boolean indicating whether the matched activity packages must
be direct boot aware when in direct boot mode if false, all
packages are considered a match even if they are not aware.null
if it resolved to the resolver activity