Share via


StorageManager.GetUuidForPath(File) Method

Definition

Return a UUID identifying the storage volume that hosts the given filesystem path.

[Android.Runtime.Register("getUuidForPath", "(Ljava/io/File;)Ljava/util/UUID;", "GetGetUuidForPath_Ljava_io_File_Handler", ApiSince=26)]
public virtual Java.Util.UUID GetUuidForPath (Java.IO.File path);
[<Android.Runtime.Register("getUuidForPath", "(Ljava/io/File;)Ljava/util/UUID;", "GetGetUuidForPath_Ljava_io_File_Handler", ApiSince=26)>]
abstract member GetUuidForPath : Java.IO.File -> Java.Util.UUID
override this.GetUuidForPath : Java.IO.File -> Java.Util.UUID

Parameters

path
File

Returns

Attributes

Remarks

Return a UUID identifying the storage volume that hosts the given filesystem path.

If this path is hosted by the default internal storage of the device at Environment#getDataDirectory(), the returned value will be #UUID_DEFAULT.

Java documentation for android.os.storage.StorageManager.getUuidForPath(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