What problem does it solve?
Coordinating cross-platform MAUI apps with native platform capabilities can be verbose and error-prone. This Skill provides structured guidance to expose and call platform-specific APIs from shared code using partial classes, conditional compilation, multi-targeting configuration, and DI patterns for Android, iOS, MacCatalyst, and Windows.
Core Features & Use Cases
- Cross-platform interop patterns: partial classes, conditional compilation, multi-targeting, and DI wiring.
- Platform-specific implementations located under Platforms/{Platform} with shared interfaces in a clean separation.
- Use Case: Build a service to access device features (camera, sensors) from common code while delegating to platform-specific implementations.
Quick Start
Create a cross-platform service interface and implement platform-specific logic in Platforms/Android, iOS, MacCatalyst, and Windows, then wire the implementations via DI so shared code can call native APIs.