Tags: CommunityToolkit/Maui
Tags
`dotnet format`
`dotnet format`
`dotnet format`
Update Xcode version to 26.1 in build workflow
Update Xcode version to 26.1 in build workflow
Update Xcode version to 26.1 in build workflow
Fix camera package fails to build with latest Maui version (#2916) * Improve null safety and update dependencies Enhanced null safety across CameraManager.android.cs by adding null-conditional operators (`?`) to prevent potential null reference exceptions. Updated `CameraViewPage.xaml` to bind `Picker` to `SelectedCamera.Name` for accurate UI display. Upgraded `Xamarin.AndroidX.Camera` dependencies to version 1.5.0 and added `Xamarin.AndroidX.Activity.Ktx` for improved functionality and compatibility. Adjusted `CameraProvider.android.cs` to handle null values and ensure robust camera initialization. * Improve camera binding, resolution, and recording quality Updated CameraViewPage.xaml to fix data binding issues by modifying the `ItemDisplayBinding` property of the `Picker`. Enhanced CameraManager.android.cs with the following changes: - Improved resolution selection logic in `UpdateCaptureResolution` by prioritizing higher resolution over capture rate. - Enhanced image capture quality in `StartUseCase` by setting capture mode to maximize quality and applying the resolution selector. - Added audio support and proper initialization for video recording in `PlatformStartVideoRecording`. These changes improve the overall functionality and quality of the camera features. * Update src/CommunityToolkit.Maui.Camera/CameraManager.android.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Ignore the camera if `Camera2CameraInfo.From` returns `null` * Update Builder Patterns * Update CameraProvider.android.cs --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Brandon Minnick <13558917+TheCodeTraveler@users.noreply.github.com>
PreviousNext