Android Guides | Samples

Android.Content.BroadcastReceiver.GoAsync Method

This can be called by an application in BroadcastReceiver.OnReceive(Context,Intent) to allow it to keep the broadcast active after returning from that function.

Syntax

[Android.Runtime.Register("goAsync", "()Landroid/content/BroadcastReceiver$PendingResult;", "")]
public BroadcastReceiver+PendingResult GoAsync ()

Remarks

This can be called by an application in BroadcastReceiver.OnReceive(Context,Intent) to allow it to keep the broadcast active after returning from that function. This does not change the expectation of being relatively responsive to the broadcast (finishing it within 10s), but does allow the implementation to move work related to it over to another thread to avoid glitching the main UI thread due to disk IO.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11