Langue

OpenFlags Enum

Definition

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum OpenFlags
[<System.Flags>]
type OpenFlags = 
Inheritance
OpenFlags
Attributes

Fields

Name Value Description
ReadOnly 0

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for reading only.

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_READ_ONLY.

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.

WriteOnly 1

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for writing only.

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_WRITE_ONLY.

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.

ReadWrite 2

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for reading and writing.

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_READ_WRITE.

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.

Nonblock 2048

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): when possible, the file is opened in nonblocking mode.

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_NONBLOCK.

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.

DataSync 4096

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): write operations on the file will complete according to the requirements of synchronized I/O data integrity completion (while file metadata may not be synchronized).

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_DATA_SYNC.

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.

Sync 1048576

For use with requestOpen(int, boolean, Executor, OutcomeReceiver): write operations on the file will complete according to the requirements of synchronized I/O file integrity completion (by contrast with the synchronized I/O data integrity completion provided by FLAG_DATA_SYNC).

Android reference for android.hardware.serial.SerialPort.OPEN_FLAG_SYNC.

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