Skip to content

Commit

Permalink
[path_provider] Update README with correct information (#122)
Browse files Browse the repository at this point in the history
* [path_provider] Update README with correct information

* Remove warning regarding the root isolate
  • Loading branch information
swift-kim authored Jun 23, 2021
1 parent bfd026f commit 7ad112a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/path_provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ import 'package:path_provider/path_provider.dart';

For detailed usage, see https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider#usage.

## Notes

- On Tizen, `getExternalStorageDirectories` will return internal storage paths (such as `/home/owner/media/Music`) unlike on Android where the function returns external storage (separate partition or SD card) paths.
- To access paths returned by `getExternalStorageDirectory` and `getExternalCacheDirectories`, you will need an SD card inserted to your Tizen device.

## Required privileges

- To access paths returned by

- `getExternalStoragePaths`
- `getDownloadsPath`
- `getExternalStorageDirectories`
- `getDownloadsDirectory`

add below lines under the `<manifest>` section in your `tizen-manifest.xml` file,

Expand All @@ -35,12 +40,12 @@ For detailed usage, see https://github.com/flutter/plugins/tree/master/packages/
</privileges>
```

and also acquire `Permission.accessMediaLocation` using the [`permission_handler`](https://pub.dev/packages/permission_handler_tizen) plugin (to be available soon). The permission is already granted on TV devices by default.
and also acquire the `Permission.mediaLibrary` permission using the [`permission_handler`](https://pub.dev/packages/permission_handler_tizen) plugin. The permission is already granted on TV devices by default.

- To access paths returned by

- `getExternalDataPath`
- `getExternalCachePath`
- `getExternalStorageDirectory`
- `getExternalCacheDirectories`

add below lines under the `<manifest>` section in your `tizen-manifest.xml` file.

Expand Down

0 comments on commit 7ad112a

Please sign in to comment.