Implement .NET MAUI device capabilities with platform permissions and declarations. USE FOR: camera/photo/media capture, MediaPicker.IsCaptureSupported, FilePicker.PickAsync durable copies to FileSystem.AppDataDirectory, GeolocationRequest, Permissions.LocationWhenInUse, UseMauiMaps, Android manifest entries, READ_MEDIA_IMAGES/Android 13+ Photo Picker migration, NSCameraUsageDescription/NSLocationWhenInUseUsageDescription, runtime permission requests, denied/cancelled flows, and durable file access. DO NOT USE FOR: notifications, auth, or UI layout.
$npx -y skills add dotnet/maui-labs --skill maui-device-capabilitiesInstalls into the current project.
Run `npx skills use "https://github.com/dotnet/maui-labs" --skill "dotnet/maui-labs/maui-device-capabilities"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/dotnet/maui-labs" that are relevant to the current task. Run `npx skills add "https://github.com/dotnet/maui-labs"` and select the relevant skills, then follow their instructions.