Udostępnij za pośrednictwem


BroadcastReceiver.GoAsync Method

Definition

This can be called by an application in #onReceive to allow it to keep the broadcast active after returning from that function.

[Android.Runtime.Register("goAsync", "()Landroid/content/BroadcastReceiver$PendingResult;", "")]
public Android.Content.BroadcastReceiver.PendingResult? GoAsync ();
[<Android.Runtime.Register("goAsync", "()Landroid/content/BroadcastReceiver$PendingResult;", "")>]
member this.GoAsync : unit -> Android.Content.BroadcastReceiver.PendingResult

Returns

Returns a PendingResult representing the result of the active broadcast. The BroadcastRecord itself is no longer active; all data and other interaction must go through PendingResult APIs. The PendingResult#finish PendingResult.finish() method must be called once processing of the broadcast is done.

Attributes

Remarks

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

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