Share via


ParcelFileMode Enum

Definition

Enumerates values returned by several types and taken as a parameter of the F:Android.OS.ParcelFileDescriptor.Open, and F:Android.OS.ParcelFileDescriptor.Open members.

public enum ParcelFileMode
type ParcelFileMode = 
Inheritance
ParcelFileMode

Fields

Name Value Description
WorldReadable 1
WorldWriteable 2
Append 33554432

For use with Open(File, ParcelFileMode): append to end of file while writing.

Truncate 67108864

For use with Open(File, ParcelFileMode): erase contents of file when opening.

Create 134217728

For use with Open(File, ParcelFileMode): create the file if it doesn't already exist.

ReadOnly 268435456

For use with Open(File, ParcelFileMode): open the file with read-only access.

WriteOnly 536870912

For use with Open(File, ParcelFileMode): open the file with write-only access.

ReadWrite 805306368

For use with Open(File, ParcelFileMode): open the file with read and write access.

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