Reputation: 113
How can I get available app memory on iOS 9 using Xamarin? I could mostly find Objective-C solutions online. The only C# solution I could find is this:
https://github.com/vikram-v/iOSSystemServices
It binds to Objective-C libraries, although BaseType class cannot be resolved. This could be caused by the fact that I'm using the Unified API, but I don't really know how to solve the problem.
Could someone please help me? Thank you in advance!
Upvotes: 1
Views: 2118
Reputation: 1708
The system's available memory can be accessed with:
var mem = NSProcessInfo.ProcessInfo.PhysicalMemory;
Is that what you need? Otherwise, it looks like most of the methods in the library you linked could be rewritten in Xamarin.iOS C#.
Upvotes: 4