Is NSTemporaryDirectory() available for Xamarin.iOS? I can't find something in the Xamarin API. How is it related to described directories here?
You can use the normal GetTempPath method to obtain the file path:
var temp = System.IO.Path.GetTempPath();
Console.WriteLine(temp);
Or if you need a NSUrl:
var nsURL = NSFileManager.DefaultManager.GetTemporaryDirectory();
Console.WriteLine(nsURL.AbsoluteUrl);
The NSUrl absolute url is the same path, just prefixed with file://
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