Megosztás a következőn keresztül:


Intent.ExtraAlternateIntents Field

Definition

An Intent[] describing additional, alternate choices you would like shown with #ACTION_CHOOSER.

[Android.Runtime.Register("EXTRA_ALTERNATE_INTENTS", ApiSince=23)]
public const string ExtraAlternateIntents;
[<Android.Runtime.Register("EXTRA_ALTERNATE_INTENTS", ApiSince=23)>]
val mutable ExtraAlternateIntents : string

Field Value

Implements

Attributes

Remarks

An Intent[] describing additional, alternate choices you would like shown with #ACTION_CHOOSER.

An app may be capable of providing several different payload types to complete a user's intended action. For example, an app invoking #ACTION_SEND to share photos with another app may use EXTRA_ALTERNATE_INTENTS to have the chooser transparently offer several different supported sending mechanisms for sharing, such as the actual "image/*" photo data or a hosted link where the photos can be viewed.

The intent present in #EXTRA_INTENT will be treated as the first/primary/preferred intent in the set. Additional intents specified in this extra are ordered; by default intents that appear earlier in the array will be preferred over intents that appear later in the array as matches for the same target component. To alter this preference, a calling app may also supply #EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER.

Java documentation for android.content.Intent.EXTRA_ALTERNATE_INTENTS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to