You need a binding project. Maui uses the mono binding tools.
https://www.mono-project.com/docs/advanced/pinvoke/
currently Maui can only call objective-c apis.
A video
https://www.youtube.com/watch?v=oibfI-ZsmzQ
note: iOS uses the Mach kernel.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I submitted a similar question in 2021 for Xamarin.iOS: "Xamarin.iOS: Where do I find the namespace containing wrapper for function os_proc_available_memory() in Apple's "OS" framework?"
The answer at that time was that particular API is not exposed in Xamarin.iOS.
Today's question is for .NET Maui, and I added "or equivalent" to the question in case there is some other API for iOS to accomplish the same thing. The documentation for os_proc_available_memory() says: "Call this function to determine the amount of memory available to your app."
Thank you.
You need a binding project. Maui uses the mono binding tools.
https://www.mono-project.com/docs/advanced/pinvoke/
currently Maui can only call objective-c apis.
A video
https://www.youtube.com/watch?v=oibfI-ZsmzQ
note: iOS uses the Mach kernel.