MusicMgr

data object MusicMgr : MediaFileMgr

Functions

Link copied to clipboard
open override fun getExternalFilesDir(subDir: String?): File

Get application-specific storage folder.

Link copied to clipboard
open override fun getFileByUri(uri: Uri): File?

Get file by uri. getFileByUri will query the DATA field corresponding to uri, and return the file if there is a corresponding path, null otherwise.

Link copied to clipboard
@RequiresApi(value = 30)
open override fun getFileUriAboveApi30(file: File): Uri?

Get the uri by file.

@RequiresApi(value = 30)
open override fun getFileUriAboveApi30(saveOptions: MutableMap<String, String>.() -> Unit): Uri?

Get the uri by saveOptions.

Link copied to clipboard
open override fun getSharedFilesDir(): File

Get shared storage folder.