Android Guides | Samples

Android.Content.BroadcastReceiver.DebugUnregister Property

Return the last value given to BroadcastReceiver.DebugUnregister.

Syntax

[get: Android.Runtime.Register("getDebugUnregister", "()Z", "GetGetDebugUnregisterHandler")]
[set: Android.Runtime.Register("setDebugUnregister", "(Z)V", "GetSetDebugUnregister_ZHandler")]
public Boolean DebugUnregister { get; set; }

Remarks

Get method documentation[Android Documentation]
Return the last value given to BroadcastReceiver.DebugUnregister.

Set method documentation[Android Documentation]
Control inclusion of debugging help for mismatched calls to Context.RegisterReceiver(BroadcastReceiver,IntentFilter). If called with true, before given to registerReceiver(), then the callstack of the following Context.UnregisterReceiver(BroadcastReceiver) call is retained, to be printed if a later incorrect unregister call is made. Note that doing this requires retaining information about the BroadcastReceiver for the lifetime of the app, resulting in a leak -- this should only be used for debugging.

Requirements

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