Hi,
I am new to Xamarin Forms. I found a link to turn on camera flash in android device using Xamarin. But may I know how can I implement the same using Xamarin forms for 3 platforms?
The link is here http://forums.xamarin.com/discussion/24237/camera-led-or-flash
My requirement is to add a button. On clicking this button camera flash should turn on/off on dependent devices. Can anyone help me in this?
Posts
I would create a dependency service for each platform.
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/dependency-service/
I wrote a cross platform xamarin plugin called Lamp which may do what you are after...
https://github.com/kphillpotts/Xamarin.Plugins/tree/master/Lamp
Its pretty rough and ready but should work as a nuget plugin or you can look at the code. Its been tested on Nexus5, iPhone 5s and Lumia 920...
Thanks all....
Hi, I have follow this https://github.com/kphillpotts/Xamarin.Plugins/tree/master/Lamp but my camera fail to function, only flash light function well only, how to make it both function at the same time?
Hi,
I'm facing Same Issues.
Is there any additional parm or overwrite for StoreCameraMediaOptions for the Flash Mode, please.
Thank you