github CommunityToolkit/Maui 6.1.0-camera
Camera v6.1.0: `IsTorchOn`

latest releases: 14.2.0, 10.0.0-mediaelement
7 hours ago

CommunityToolkit.Maui.Camera v6.1.0

Introducing IsTorchOn 🔦

Thanks to @MFinkBK, bool CameraView.IsTorchOn { get; set; } is now supported!

When IsTorchOn == true the device's torch (aka flashlight) will turn on; when IsTorchOn == false the device's torch (aka flashlight) will turn off.

https://learn.microsoft.com/dotnet/communitytoolkit/maui/views/camera-view

CameraViewPage.xaml.cs

<toolkit:CameraView
    x:Name="Camera"
    IsTorchOn="{Binding IsTorchOn, Mode=TwoWay}" />

CameraViewViewModel.cs

[ObservableProperty]
public partial bool IsTorchOn { get; set; }

What's Changed

  • CameraView torch support by @MFinkBK in #3211
  • fix: allow camera usage when microphone permission is denied on Windows by @AopBK in #3140

New Contributors

Full Changelog: 14.1.1...6.1.0-camera

Don't miss a new Maui release

NewReleases is sending notifications on new releases.