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


Intent.ExtraResultReceiver Field

Definition

A ResultReceiver used to return data back to the sender.

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

Field Value

Implements

Attributes

Remarks

A ResultReceiver used to return data back to the sender.

Used to complete an app-specific #EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER refinement for #ACTION_CHOOSER.

If #EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER is present in the intent used to start a #ACTION_CHOOSER activity this extra will be #fillIn(Intent, int) filled in to that IntentSender and sent when the user selects a target component from the chooser. It is up to the recipient to send a result to this ResultReceiver to signal that disambiguation is complete and that the chooser should invoke the user's choice.

The disambiguator should provide a Bundle to the ResultReceiver with an intent assigned to the key #EXTRA_INTENT. This supplied intent will be used by the chooser to match and fill in the final Intent or ChooserTarget before starting it. The supplied intent must #filterEquals(Intent) match one of the intents from #EXTRA_INTENT or #EXTRA_ALTERNATE_INTENTS passed to #EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER to be accepted.

The result code passed to the ResultReceiver should be android.app.Activity#RESULT_OK if the refinement succeeded and the supplied intent's target in the chooser should be started, or android.app.Activity#RESULT_CANCELED if the chooser should finish without starting a target.

Java documentation for android.content.Intent.EXTRA_RESULT_RECEIVER.

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