Android Guides | Samples

Android.Content.BroadcastReceiver.InvokeAbortBroadcast Method

Sets the flag indicating that this receiver should abort the current broadcast; only works with broadcasts sent through Context.SendOrderedBroadcast(Intent,String).

Syntax

[Android.Runtime.Register("abortBroadcast", "()V", "")]
public Void InvokeAbortBroadcast ()

Remarks

Sets the flag indicating that this receiver should abort the current broadcast; only works with broadcasts sent through Context.SendOrderedBroadcast(Intent,String). This will prevent any other broadcast receivers from receiving the broadcast. It will still call BroadcastReceiver.OnReceive(Context,Intent) of the BroadcastReceiver that the caller of Context.SendOrderedBroadcast(Intent,String) passed in.

This method does not work with non-ordered broadcasts such as those sent with Context.SendBroadcast(Intent)

[Android Documentation]

Requirements

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