ParcelFileDescriptor.ParseMode(String) Method

Definition

Converts a string representing a file mode, such as "rw", into a bitmask suitable for use with Open(File, ParcelFileMode).

[Android.Runtime.Register("parseMode", "(Ljava/lang/String;)I", "", ApiSince=19)]
public static Android.OS.ParcelFileMode ParseMode (string mode);
static member ParseMode : string -> Android.OS.ParcelFileMode

Parameters

mode
String

The string representation of the file mode.

Returns

ParcelFileMode
Attributes

Exceptions

if the given string does not match a known file mode.

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