Merge "Chooser filtering and caller direct share targets" into nyc-dev

am: fe5e1a7

* commit 'fe5e1a75c125095b90719b22ffcf71e0968a6530':
  Chooser filtering and caller direct share targets

Change-Id: I8be4c3a825632be9e621ba542877d484d0b2b7f8
This commit is contained in:
Adam Powell
2016-04-09 00:40:08 +00:00
committed by android-build-merger
6 changed files with 122 additions and 16 deletions

View File

@@ -3729,6 +3729,31 @@ public class Intent implements Parcelable, Cloneable {
*/
public static final String EXTRA_ALTERNATE_INTENTS = "android.intent.extra.ALTERNATE_INTENTS";
/**
* A {@link ComponentName ComponentName[]} describing components that should be filtered out
* and omitted from a list of components presented to the user.
*
* <p>When used with {@link #ACTION_CHOOSER}, the chooser will omit any of the components
* in this array if it otherwise would have shown them. Useful for omitting specific targets
* from your own package or other apps from your organization if the idea of sending to those
* targets would be redundant with other app functionality. Filtered components will not
* be able to present targets from an associated <code>ChooserTargetService</code>.</p>
*/
public static final String EXTRA_EXCLUDE_COMPONENTS
= "android.intent.extra.EXCLUDE_COMPONENTS";
/**
* A {@link android.service.chooser.ChooserTarget ChooserTarget[]} for {@link #ACTION_CHOOSER}
* describing additional high-priority deep-link targets for the chooser to present to the user.
*
* <p>Targets provided in this way will be presented inline with all other targets provided
* by services from other apps. They will be prioritized before other service targets, but
* after those targets provided by sources that the user has manually pinned to the front.</p>
*
* @see #ACTION_CHOOSER
*/
public static final String EXTRA_CHOOSER_TARGETS = "android.intent.extra.CHOOSER_TARGETS";
/**
* An {@link IntentSender} for an Activity that will be invoked when the user makes a selection
* from the chooser activity presented by {@link #ACTION_CHOOSER}.