I'm a bit confused using the PermissionPlugin, in connection with the MediaPlug, for Xamarin.Forms. I'm building functionality to allow a user to select an existing picture from their device to use in my app. (The MediaPlugin handles that part fine).
My confusion is that the permissions enum contains both Photos
and MediaLibrary
values, and I'm not sure which one to use or if I need to request both. The app is targing Android, iOS and UWP, so if it is different between platforms I'd like to know that as well.
What is the difference between those values, and which one(s) do I need for each platform?
The Media Library framework provides a read-only Objective-C data model representing a user's collections of images, audio, and video. The initial access point of the Media Library framework is MLMediaLibrary , which loads the user's media into a hierarchical structure consisting of media sources, groups, and objects.
To visit your WordPress Media Library, expand the Media menu from the WordPress Dashboard. The Media Library page will show all of the media items you currently have in your media library. To add a new media item to your library, click the Add New link.
according to the release notes for 2.1.0
Add MediaLibrary permission for iOS's MPMediaLibrary
which is used for the Music library, not photos
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With