Open jfversluis opened 3 months ago
As mentioned in https://github.com/CommunityToolkit/Maui/pull/1758, the foundation of this PR is based on https://github.com/CommunityToolkit/Maui/pull/1080, where IsTorchOn
was initially added. However, this property has not actually been implemented in any of the supported platforms yet, therefore setting it would have no effect. This is reflected in CameraViewHandler where no PropertyMapper for IsTorchOn
is defined.
On a side note, the same situation applies to IsCameraBusy
as well, where it doesn't actually reflect the status of the CameraView.
Oooh thanks! I missed that. Yeah so lets make sure to implement those then I guess 😄
Flash on/auto And it won't work.
@jfversluis No worries and thanks for catching this! I completely forgot about these unimplemented features in the PR and just let them sneak in to the release... I guess the maintainer team can decide if we should temporarily remove them in a new release until they are properly implemented?
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Setting the
IsTorchOn
to true does not have any effect at least on Android. I have been testing Android 12, on a physical Samsung Galaxy S10e. Didn't test any other platforms yet.Expected Behavior
The flashlight turns on and can be used as a torch
Steps To Reproduce
IsTorchOn
in XAML to trueIsTorchOn
to true from codeLink to public reproduction project repository
https://github.com/CommunityToolkit/Maui
Environment
Anything else?
No response