CloseGuard.WarnIfOpen Method

Definition

Logs a warning if the caller did not properly cleanup by calling an explicit close method before finalization.

[Android.Runtime.Register("warnIfOpen", "()V", "", ApiSince=30)]
public void WarnIfOpen ();
[<Android.Runtime.Register("warnIfOpen", "()V", "", ApiSince=30)>]
member this.WarnIfOpen : unit -> unit
Attributes

Remarks

Logs a warning if the caller did not properly cleanup by calling an explicit close method before finalization.

Java documentation for android.util.CloseGuard.warnIfOpen().

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.

Applies to