Share via


BroadcastReceiver.ResultData Property

Definition

Retrieve the current result data, as set by the previous receiver. -or- Change the current result data of this broadcast; only works with broadcasts sent through Context#sendOrderedBroadcast(Intent, String) Context.sendOrderedBroadcast.

public string? ResultData { [Android.Runtime.Register("getResultData", "()Ljava/lang/String;", "")] get; [Android.Runtime.Register("setResultData", "(Ljava/lang/String;)V", "")] set; }
[<get: Android.Runtime.Register("getResultData", "()Ljava/lang/String;", "")>]
[<set: Android.Runtime.Register("setResultData", "(Ljava/lang/String;)V", "")>]
member this.ResultData : string with get, set

Property Value

String The current result data; may be null.

Attributes

Remarks

Property getter documentation:

Retrieve the current result data, as set by the previous receiver. Often this is null.

Java documentation for android.content.BroadcastReceiver.getResultData().

Property setter documentation:

Change the current result data of this broadcast; only works with broadcasts sent through Context#sendOrderedBroadcast(Intent, String) Context.sendOrderedBroadcast. This is an arbitrary string whose interpretation is up to the broadcaster.

<strong>This method does not work with non-ordered broadcasts such as those sent with Context#sendBroadcast(Intent) Context.sendBroadcast</strong>

Java documentation for android.content.BroadcastReceiver.setResultData(java.lang.String).

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

See also

  • <xref:Android.Content.BroadcastReceiver.SetResult(Android.App.Result%2c+System.String%2c+System.String)>