Environment.IsExternalStorageLegacy Property

Definition

Returns whether the shared/external storage media is a legacy view that includes files not owned by the app.

public static bool IsExternalStorageLegacy { [Android.Runtime.Register("isExternalStorageLegacy", "()Z", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("isExternalStorageLegacy", "()Z", "", ApiSince=29)>]
static member IsExternalStorageLegacy : bool

Property Value

Attributes

Remarks

Returns whether the shared/external storage media is a legacy view that includes files not owned by the app.

This value may be different from the value requested by requestLegacyExternalStorage in the app's manifest, since an app may inherit its legacy state based on when it was first installed, target sdk and other factors.

Non-legacy apps can continue to discover and read media belonging to other apps via android.provider.MediaStore.

Java documentation for android.os.Environment.isExternalStorageLegacy().

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