Where do I find the namespace containing wrapper for function os_proc_available_memory(), or equivalent, for iOS?

Kurt K 96 Reputation points

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.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 44,076 Reputation points

    You need a binding project. Maui uses the mono binding tools.


    currently Maui can only call objective-c apis.

    A video


    note: iOS uses the Mach kernel.

0 additional answers

Sort by: Most helpful