Hello,
WindowInfoTracker is a native Android API, which is from AndroidX. (AndroidX is a part of MAUI)
And you can invoke the platform code in your MAUI project directly by adding conditional compilation.
For example,
#if ANDROID
var windowInfoTracker = WindowInfoTracker.GetOrCreate(Platform.AppContext);
#endif
For more details, please refer to .NET MAUI invoking platform code - .NET MAUI | Microsoft Learn
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.