See Also: BroadcastReceiver+PendingResult
public class BroadcastReceiver.PendingResult : Object
State for a result that is pending for a broadcast receiver. Returned by BroadcastReceiver.GoAsync while in BroadcastReceiver.OnReceive(Context,Intent). This allows you to return from onReceive() without having the broadcast terminate; you must call BroadcastReceiver+PendingResult.Finish once you are done with the broadcast. This allows you to process the broadcast off of the main thread of your app.
Note on threading: the state inside of this class is not itself thread-safe, however you can use it from any thread if you properly sure that you do not have races. Typically this means you will hand the entire object to another thread, which will be solely responsible for setting any results and finally calling BroadcastReceiver+PendingResult.Finish.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11
The members of Android.Content.BroadcastReceiver.PendingResult are listed below.
See Also: Object
|[read-only]||AbortBroadcast||Boolean. Version of BroadcastReceiver.AbortBroadcast for asynchronous broadcast handling.|
|ResultCode||Result. Version of BroadcastReceiver.ResultCode for asynchronous broadcast handling.|
|ResultData||String. Version of BroadcastReceiver.ResultData for asynchronous broadcast handling.|
Version of BroadcastReceiver.ClearAbortBroadcast for asynchronous broadcast handling.
Finish the broadcast.
Version of BroadcastReceiver.GetResultExtras(Boolean) for asynchronous broadcast handling.
Version of BroadcastReceiver.InvokeAbortBroadcast for asynchronous broadcast handling.
|SetResult(Result, String, Bundle)|
Version of BroadcastReceiver.SetResult(Result,String,String) for asynchronous broadcast handling.
Version of BroadcastReceiver.SetResultExtras(Bundle) for asynchronous broadcast handling.