AtomicFile Constructors

Definition

Overloads

AtomicFile(File)

Create a new AtomicFile for a file located at the given File path.

AtomicFile(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AtomicFile(File)

Create a new AtomicFile for a file located at the given File path.

[Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "")]
public AtomicFile (Java.IO.File? baseName);
[<Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "")>]
new Android.Util.AtomicFile : Java.IO.File -> Android.Util.AtomicFile

Parameters

baseName
File
Attributes

Remarks

Create a new AtomicFile for a file located at the given File path. The new file created when writing will be the same file path with ".new" appended.

Java documentation for android.util.AtomicFile.AtomicFile(java.io.File).

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

AtomicFile(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AtomicFile (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.AtomicFile : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.AtomicFile

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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