I want to save some picture by tapping on the button to the gallery of the device and I tried to save a file with the code below and I found this code on Xamarin website but they are not defined and I could not find the reference of them.
NSData imgData = photo.AsJPEG();
NSError err = null;
if (imgData.Save(jpgFilename, false, out err))
{
Console.WriteLine("saved as " + jpgFilename);
}
else
{
Console.WriteLine("NOT saved as " + jpgFilename + " because" + err.LocalizedDescription);
}