Udostępnij za pośrednictwem


Intent.ExtraChosenComponentIntentSender Field

Definition

An IntentSender that will be notified if a user successfully chooses a target component to handle an action in an #ACTION_CHOOSER activity.

[Android.Runtime.Register("EXTRA_CHOSEN_COMPONENT_INTENT_SENDER", ApiSince=22)]
public const string ExtraChosenComponentIntentSender;
[<Android.Runtime.Register("EXTRA_CHOSEN_COMPONENT_INTENT_SENDER", ApiSince=22)>]
val mutable ExtraChosenComponentIntentSender : string

Field Value

Implements

Attributes

Remarks

An IntentSender that will be notified if a user successfully chooses a target component to handle an action in an #ACTION_CHOOSER activity. The IntentSender will have the extra #EXTRA_CHOSEN_COMPONENT appended to it containing the ComponentName of the chosen component.

In some situations this callback may never come, for example if the user abandons the chooser, switches to another task or any number of other reasons. Apps should not be written assuming that this callback will always occur.

Java documentation for android.content.Intent.EXTRA_CHOSEN_COMPONENT_INTENT_SENDER.

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