Location of the Photo in Xamarin Multiplatform

Asked

Viewed 46 times

0

Guys, I’m developing an application in Xamarin Mutiplataforma that takes photos and then should recover these photos taken and send to a Webservice. Would you like to know how to recover the photo that was taken? How do I access the photo gallery on both Android and IOS? Grateful,

1 answer

0


Access to the file system is platform dependent, so there is no way to directly access the Xamarin cross-platform API.

Usually this is solved via dependency injection, you create an interface, and in each platform-specific project, you implement and log into the DI framework you use (or that of Xamarin himself, if not using any), access to the file you need.

At this link, has an example that should be very close to what you want.

  • Julio, good morning. The link helped me solve the problem. Thanks for the answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.