← Back to Toolkit Releases
Introducing
Camera v6.1.0: `IsTorchOn`
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 https://github.com/CommunityToolkit/Maui/pull/3211
- fix: allow camera usage when microphone permission is denied on Windows by @AopBK in https://github.com/CommunityToolkit/Maui/pull/3140
New Contributors
- @MFinkBK made their first contribution in https://github.com/CommunityToolkit/Maui/pull/3211
- @AopBK made their first contribution in https://github.com/CommunityToolkit/Maui/pull/3140
Full Changelog: https://github.com/CommunityToolkit/Maui/compare/14.1.1…6.1.0-camera