AsynchronousFileChannel.Force(Boolean) Method

Definition

Forces any updates to this channel's file to be written to the storage device that contains it.

[Android.Runtime.Register("force", "(Z)V", "GetForce_ZHandler", ApiSince=26)]
public abstract void Force (bool metaData);
[<Android.Runtime.Register("force", "(Z)V", "GetForce_ZHandler", ApiSince=26)>]
abstract member Force : bool -> unit

Parameters

metaData
Boolean

If true then this method is required to force changes to both the file's content and metadata to be written to storage; otherwise, it need only force content changes to be written

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousFileChannel.force(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.

Applies to