'Maui platform specific class library

I'm currently looking at Maui as the replacement for Xamarin Forms. I currently have an Android class library for the Camera2 api that I would like to reuse. How can I set up a Maui project that includes platform dependent class libraries? So that when building and Android version I use the Android version of the class library. When building for Window I get the Windows version and IOS, I get the IOS version.



Solution 1:[1]

I think I figured it out. A Maui class library appears to be divided into platform specific sections plus a common section. So it appears I put the platform related code into the specific platform section and interface through the common section.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Terry151151