Store URI within tracks

This commit is contained in:
Elias Projahn 2020-04-19 18:37:16 +02:00
parent da804bf699
commit 5216c7d359
3 changed files with 32 additions and 1 deletions

View file

@ -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