To get the path to the gallery in android, I use the following code:
Android. OS.Environment.ExternalStorageDirectory.AbsolutePath.
I use dependency injection. After getting the path, then I get all the files (their paths) from the gallery and show them on the screen.
string externalDirectory = dependencyInjectionService.GetPublicExternalFolder();
string publicPicturesDirectory = Path.Combine(externalDirectory, "Pictures");
var paths = Directory.GetFiles(publicPicturesDirectory, "*.*", SearchOption.AllDirectories)
I have this logic in the beginning. if the file exists in the gallery, then we take its path and show it on the screen. If not, we save it in private external storage.
Is it possible to do this in ios? I need to get the path to the Photo and take the path of a specific file from there and show it on the screen..