viezel / nappflashlight Goto Github PK
View Code? Open in Web Editor NEWFlashlight Titanium module for iOS and Android.
Flashlight Titanium module for iOS and Android.
This seems to be an Android 5.0 and iOS 8 issue*
Android reports proper behavior with the isFlashLightOn() method but does not activate the light with the appropriate methods.
iOS does not report proper behavior with isFlashLightOn() (always false) and does activate the light.
HI,
In my application I am using torch functionality and for that I am using dk.napp.flashlight module. But with Android 6.0 devices it is giving runtime error as
Uncaught error: Fail to connect to camera service. When I click torch and using torch.turnFlashLight();
Please help, also let me know if any additional information is required.
Thanks,
Prakhar
This my code:
var NappFlashLight = require('dk.napp.flashlight');
if (NappFlashLight.isFlashLightSupported()) {
Ti.API.info("hardware support for flashlight");
NappFlashLight.turnFlashLightOn();
} else {
Ti.API.error("No hardware support for flashlight");
}
On console I see the YES node
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.