CloseGuard.Open(String) Method

Definition

Initializes the instance with a warning that the caller should have explicitly called the closeMethodName method instead of relying on finalization.

[Android.Runtime.Register("open", "(Ljava/lang/String;)V", "", ApiSince=30)]
public void Open (string closeMethodName);
[<Android.Runtime.Register("open", "(Ljava/lang/String;)V", "", ApiSince=30)>]
member this.Open : string -> unit

Parameters

closeMethodName
String

non-null name of explicit termination method. Printed by warnIfOpen.

Attributes

Remarks

Initializes the instance with a warning that the caller should have explicitly called the closeMethodName method instead of relying on finalization.

Java documentation for android.util.CloseGuard.open(java.lang.String).

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