What problem does it solve?
Provides concrete guidance and best practices to avoid crashes, permission errors, and data loss when picking or capturing photos and videos in .NET MAUI apps.
Core Features & Use Cases
- Single & Multi-select Picking: Advice for PickPhotoAsync, PickPhotosAsync, PickVideoAsync and PickVideosAsync with SelectionLimit validation.
- Camera Capture & Guards: Use IsCaptureSupported before CapturePhotoAsync/CaptureVideoAsync to avoid device-specific crashes.
- Platform Permissions & Saving: Platform-specific manifest/plist requirements (Android API 33 split, Android queries block, iOS Info.plist keys), plus safe FileResult handling and saving streams to app storage.
- Resource Safety: Emphasizes UI-thread invocation and disposing OpenReadAsync streams to prevent leaks and exceptions.
Quick Start
Use maui-media-picker guidance to implement photo and video selection that runs on the UI thread, validates SelectionLimit, checks IsCaptureSupported, requests platform permissions, and safely disposes FileResult streams when saving to app storage.