Android Guides | Samples

Android.Content.BroadcastReceiver.DebugUnregister Property

Return the last value given to BroadcastReceiver.DebugUnregister.


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


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.


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