BroadcastReceiver.DebugUnregister Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the last value given to #setDebugUnregister
. -or- Control inclusion of debugging help for mismatched
calls to Context#registerReceiver(BroadcastReceiver, IntentFilter)
Context.registerReceiver()
.
public bool DebugUnregister { [Android.Runtime.Register("getDebugUnregister", "()Z", "")] get; [Android.Runtime.Register("setDebugUnregister", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getDebugUnregister", "()Z", "")>]
[<set: Android.Runtime.Register("setDebugUnregister", "(Z)V", "")>]
member this.DebugUnregister : bool with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Return the last value given to #setDebugUnregister
.
Java documentation for android.content.BroadcastReceiver.getDebugUnregister()
.
Property setter documentation:
Control inclusion of debugging help for mismatched calls to Context#registerReceiver(BroadcastReceiver, IntentFilter) Context.registerReceiver()
. If called with true, before given to registerReceiver(), then the callstack of the following Context#unregisterReceiver(BroadcastReceiver) Context.unregisterReceiver()
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.
Java documentation for android.content.BroadcastReceiver.setDebugUnregister(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.