path_provider_tizen 2.2.0 path_provider_tizen: ^2.2.0 copied to clipboard
Tizen implementation of the path_provider plugin.
path_provider_tizen #
The Tizen implementation of path_provider
.
Usage #
This package is not an endorsed implementation of path_provider
. Therefore, you have to include path_provider_tizen
alongside path_provider
as dependencies in your pubspec.yaml
file.
dependencies:
path_provider: ^2.1.4
path_provider_tizen: ^2.2.0
Then you can import path_provider
in your Dart code:
import 'package:path_provider/path_provider.dart';
For detailed usage, see https://pub.dev/packages/path_provider#usage.
Supported APIs #
- ✅
getTemporaryDirectory
(returns the app's cache directory path) - ✅
getApplicationSupportDirectory
(returns the app's data directory path) - ❌
getLibraryDirectory
(iOS-only) - ✅
getApplicationDocumentsDirectory
(returns the app's data directory path) - ✅
getApplicationCachePath
(returns the app's cache directory path) - ✅
getExternalStorageDirectory
(requires an SD card) - ✅
getExternalCacheDirectories
(requires an SD card) - ✅
getExternalStorageDirectories
(returns shared media library paths such as/home/owner/media/Music
) - ❌
getDownloadsDirectory
(desktop-only)
Required privileges #
-
To access paths returned by
getExternalStorageDirectories
, add below lines under the<manifest>
section in yourtizen-manifest.xml
file,<privileges> <privilege>http://tizen.org/privilege/mediastorage</privilege> </privileges>
and also acquire the
Permission.mediaLibrary
permission using thepermission_handler
plugin. The permission is already granted on TV devices by default. -
To access paths returned by
getExternalStorageDirectory
getExternalCacheDirectories
add below lines under the
<manifest>
section in yourtizen-manifest.xml
file.<privileges> <privilege>http://tizen.org/privilege/externalstorage.appdata</privilege> </privileges>