fiscal-cliff / phonegap-plugin-brightness Goto Github PK
View Code? Open in Web Editor NEWA phonegap 3.x plugin for brightness control within android and ios
A phonegap 3.x plugin for brightness control within android and ios
I am able to use this plugin to change the settings but those are reverted back to earlier once the app is in background or closed.
How do I retain these settings.
Im geting this error on getBrightness
Plugin has stopped working for me in Lollipop, I believe there's changes in the way brightness works. Has anyone else experienced this?
Hi,
at least on the currently newest iOS Version 10.3.1 the display lightens up after a call to
cordova.plugins.brightness.setBrightness(1, function() { console.log('Successfully lightend up display!'); }, function(err) { console.error('Could not lighten up display! ' + err); });
but is back to its old brightness after one second. I am not sure in which iOS Version this behavoir occurs first - it might also be in 10.3.0.
Any ideas?
Thanks a lot!
Hello!
Don't know why but i can't make it work for Android.
What i have already:
All i have in ADB is "D/CordovaLog( 2007): file:///android_asset/www/js/brightness.js: Line 8 : Uncaught ReferenceError: brightness is not defined"
This error point to the "brightness.setBrightness(value, win, fail);" line.
I try to remake project, clean plugin dir and redownload it, and many other things...
Where is my mistake?
Thank you!
Hi, im trying to use this plugin to set the brightness of android device but i dont know what is the range of values for the parameter "value" in the setBrightness method. If use 0 the screen is completely black (its ok). but if use 10, 50 or 100 the screen is normal.
Sorry my english.
Thank you
Hi! Thanks for writing this plugin for cordova. Could you please update the readme.md with better instructions on how to use? Do I need to insert the code at the bottom into a script tag?
Is there any way to use this plugin for PhoneGap Build?
Hello,
Thanks for writing this plugin. Your plugin is so excellent. It works perfect for me.
I'd like to share the tips that how to build this plugin on build.phonegap.com.
just add to config.xml
<plugin spec="https://github.com/fiscal-cliff/phonegap-plugin-brightness.git" source="git" />
Environment: cli-6.5.0
Thanks.
How do I get the current brightness? I'm able to use setBrightness and pass it a value but getBrightness doesn't seem to work.
Thanks
my code is exactly the same as in readme. Calling getBrightness
function give me string '1.0' in callback.
What am I doing wrong?
Do you have an example of the usage. I tried several things with no luck.
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.