mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Store URI within tracks
This commit is contained in:
parent
da804bf699
commit
5216c7d359
3 changed files with 32 additions and 1 deletions
|
|
@ -62,6 +62,22 @@ class Platform {
|
|||
);
|
||||
}
|
||||
|
||||
/// Get document URI by file name
|
||||
///
|
||||
/// [treeId] is the base URI from the SAF, [parentId] is the document ID of
|
||||
/// the parent directory.
|
||||
static Future<String> getUriByName(
|
||||
String treeUri, String parentId, String fileName) async {
|
||||
return await _platform.invokeMethod(
|
||||
'getUriByName',
|
||||
{
|
||||
'treeUri': treeUri,
|
||||
'parentId': parentId,
|
||||
'fileName': fileName,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// Read contents of file by name
|
||||
///
|
||||
/// [treeId] is the base URI from the SAF, [parentId] is the document ID of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue