Photo Location in Xamarin Multiplatform

0

Guys, I'm developing an application in Xamplin Mutiplataforma that takes photos and then must retrieve these photos taken and send them to a Webservice. Would you like to know how to recover the photo that was taken? How can I access the photo gallery on both Android and IOS? Thankful,

    
asked by anonymous 23.05.2018 / 20:33

1 answer

0

File system access is platform dependent, so you do not have access directly to the Xamarin cross-platform API.

This is usually resolved via dependency injection , you create an interface, and in each platform-specific project, you implement and register in the DI framework that you use (or the Xamarin itself , if you are not using any), access the file you need.

In this link , you have one example that should be very close to what you want.

    
23.05.2018 / 22:45