Context.GetExternalFilesDir(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the absolute path to the directory on the primary shared/external storage device where the application can place persistent files it owns.
[Android.Runtime.Register("getExternalFilesDir", "(Ljava/lang/String;)Ljava/io/File;", "GetGetExternalFilesDir_Ljava_lang_String_Handler")]
public abstract Java.IO.File? GetExternalFilesDir (string? type);
[<Android.Runtime.Register("getExternalFilesDir", "(Ljava/lang/String;)Ljava/io/File;", "GetGetExternalFilesDir_Ljava_lang_String_Handler")>]
abstract member GetExternalFilesDir : string -> Java.IO.File
Parameters
- type
- String
The type of files directory to return. May be null
for the root of the files directory or one of the following
constants for a subdirectory:
android.os.Environment#DIRECTORY_MUSIC
,
android.os.Environment#DIRECTORY_PODCASTS
,
android.os.Environment#DIRECTORY_RINGTONES
,
android.os.Environment#DIRECTORY_ALARMS
,
android.os.Environment#DIRECTORY_NOTIFICATIONS
,
android.os.Environment#DIRECTORY_PICTURES
, or
android.os.Environment#DIRECTORY_MOVIES
.
Returns
the absolute path to application-specific directory. May return
null
if shared storage is not currently available.
- Attributes
Remarks
Java documentation for android.content.Context.getExternalFilesDir(java.lang.String)
.
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.