Android.Test.Mock.MockContext.GetDir Method
Retrieve, creating if needed, a new directory in which the application can place its own custom data files.

Syntax

[Android.Runtime.Register("getDir", "(Ljava/lang/String;I)Ljava/io/File;", "GetGetDir_Ljava_lang_String_IHandler")]
public override Java.IO.File GetDir (string name, [Android.Runtime.GeneratedEnum] Android.Content.FileCreationMode mode)

Parameters

name
Name of the directory to retrieve. This is a directory that is created as part of your application data.
mode
Operating mode. Use 0 or Android.Content.Context.MODE_PRIVATE for the default operation, Android.Content.Context.MODE_WORLD_READABLE and Android.Content.Context.MODE_WORLD_WRITEABLE to control permissions.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve, creating if needed, a new directory in which the application can place its own custom data files. You can use the returned File object to create and access files in this directory. Note that files created through a File object will only be accessible by your own application; you can only set the mode of the entire directory, not of individual files.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1