Compartilhar via


Environment.InvokeIsExternalStorageRemovable(File) Method

Definition

Returns whether the shared/external storage media at the given path is physically removable.

[Android.Runtime.Register("isExternalStorageRemovable", "(Ljava/io/File;)Z", "")]
public static bool InvokeIsExternalStorageRemovable (Java.IO.File path);
[<Android.Runtime.Register("isExternalStorageRemovable", "(Ljava/io/File;)Z", "")>]
static member InvokeIsExternalStorageRemovable : Java.IO.File -> bool

Parameters

path
File

Returns

true if the storage device can be removed (such as an SD card), or false if the storage device is built in and cannot be physically removed.

Attributes

Exceptions

if the path is not a valid storage device.

Remarks

Returns whether the shared/external storage media at the given path is physically removable.

Java documentation for android.os.Environment.isExternalStorageRemovable(java.io.File).

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