public static interface ResolverActivity.TargetInfo
Modifier and Type | Method and Description |
---|---|
ResolverActivity.TargetInfo |
cloneFilledIn(Intent fillInIntent,
int flags)
Clone this target with the given fill-in information.
|
List<Intent> |
getAllSourceIntents() |
CharSequence |
getBadgeContentDescription() |
Drawable |
getBadgeIcon() |
Drawable |
getDisplayIcon() |
CharSequence |
getDisplayLabel()
Return the human-readable text label for this target.
|
CharSequence |
getExtendedInfo()
Return any extended info for this target.
|
ComponentName |
getResolvedComponentName()
Get the resolved component name that represents this target.
|
Intent |
getResolvedIntent()
Get the resolved intent that represents this target.
|
ResolveInfo |
getResolveInfo()
Return the ResolveInfo about how and why this target matched the original query
for available targets.
|
boolean |
isPinned() |
boolean |
start(Activity activity,
Bundle options)
Start the activity referenced by this target.
|
boolean |
startAsCaller(Activity activity,
Bundle options,
int userId)
Start the activity referenced by this target as if the ResolverActivity's caller
was performing the start operation.
|
boolean |
startAsUser(Activity activity,
Bundle options,
UserHandle user)
Start the activity referenced by this target as a given user.
|
Intent getResolvedIntent()
start
methods provided;
this is the intent that will be credited with the launch.ComponentName getResolvedComponentName()
start
methods provided; this is the component that will be credited with the launch.boolean start(Activity activity, Bundle options)
activity
- calling Activity performing the launchoptions
- ActivityOptions bundleboolean startAsCaller(Activity activity, Bundle options, int userId)
activity
- calling Activity (actually) performing the launchoptions
- ActivityOptions bundleuserId
- userId to start as or UserHandle.USER_NULL
for activity's callerboolean startAsUser(Activity activity, Bundle options, UserHandle user)
activity
- calling activity performing the launchoptions
- ActivityOptions bundleuser
- handle for the user to start the activity asResolveInfo getResolveInfo()
CharSequence getDisplayLabel()
CharSequence getExtendedInfo()
Drawable getDisplayIcon()
Drawable getBadgeIcon()
CharSequence getBadgeContentDescription()
ResolverActivity.TargetInfo cloneFilledIn(Intent fillInIntent, int flags)
List<Intent> getAllSourceIntents()
boolean isPinned()