maui-media-picker

Select and capture media using MediaPicker.Default in .NET MAUI apps.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-media-picker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-media-picker
Source: https://github.com/mkazimoto/AppMAUICopilot/tree/main/.github/skills/maui-media-picker
Command: npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-media-picker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MAUI apps often need to let users pick photos or videos or capture new media, while handling platform permissions and consistent FileResult data. This Skill provides a unified, cross‑platform approach to selecting media and capturing from the camera, with clear guidance on using MediaPicker.Default and handling results across Android, iOS, and Windows.

Core Features & Use Cases

  • Single- and multi-select media selection
  • Capture photos and videos from the device camera
  • Cross-platform permission guidance and FileResult handling
  • Platform availability checks (IsCaptureSupported) and storage considerations

Quick Start

Use MediaPicker.Default to present a media picker or camera capture in your MAUI app and process the returned FileResult.

Frequently Asked Questions about maui-media-picker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pick photos and videos from the gallery in .NET MAUI?

To pick media in .NET MAUI, use MediaPicker.Default to present the native gallery and process the returned FileResult for cross-platform photo and video selection. It supports single and multi-select workflows.

Can I capture photos directly from the camera in a MAUI app?

Yes, you can capture photos in a MAUI app using MediaPicker.Default. First check IsCaptureSupported to verify device camera availability, then execute the capture request on the UI-thread to ensure proper cross-platform execution.

Does the MAUI MediaPicker handle cross-platform permissions for Android and iOS?

The MAUI MediaPicker provides cross-platform permission guidance for Android, iOS, macOS, and Windows, ensuring consistent FileResult handling and proper access when selecting media or capturing from the camera across different operating systems.

How do I configure image resizing and selection limits when picking media in MAUI?

You can configure image resizing, selection limits, metadata preservation, and titles in MAUI by passing MediaPickerOptions to MediaPicker.Default, allowing fine-grained control over the media selection and capture process.

Why does my MAUI media picker throw an exception when capturing photos?

MAUI media picker exceptions during capture often occur when UI-thread usage is not enforced or IsCaptureSupported is not checked first. Always run MediaPicker.Default operations on the UI-thread to prevent cross-platform errors.