StorageManager.GetUuidForPath(File) 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.
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
The non-null filesystem path whose storage volume is to be identified.
Returns
The UUID of the volume that contains path, or UuidDefault for the device's default internal storage.
- 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.