Android Guides | Samples

Android.Content.ReceiverCallNotAllowedException Class

See Also: ReceiverCallNotAllowedException

Syntax

[Android.Runtime.Register("android/content/ReceiverCallNotAllowedException", DoNotGenerateAcw=true)]
public class ReceiverCallNotAllowedException : AndroidRuntimeException

Remarks

This exception is thrown from Context.RegisterReceiver(BroadcastReceiver,IntentFilter) and Context.BindService(Intent,IServiceConnection,IServiceConnection) when these methods are being used from an BroadcastReceiver component. In this case, the component will no longer be active upon returning from receiving the Intent, so it is not valid to use asynchronous APIs.

[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

The members of Android.Content.ReceiverCallNotAllowedException are listed below.

See Also: AndroidRuntimeException

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.