Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okhiroyuki/cordova-plugin-ambient-light
This plugin helps to get intensity from the ambient light sensor in a device through cordova platform.
https://github.com/okhiroyuki/cordova-plugin-ambient-light
android cordova cordova-plugin sensor
Last synced: 5 days ago
JSON representation
This plugin helps to get intensity from the ambient light sensor in a device through cordova platform.
- Host: GitHub
- URL: https://github.com/okhiroyuki/cordova-plugin-ambient-light
- Owner: okhiroyuki
- License: mit
- Created: 2020-03-20T00:47:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T16:35:27.000Z (6 months ago)
- Last Synced: 2024-11-05T01:35:06.282Z (10 days ago)
- Topics: android, cordova, cordova-plugin, sensor
- Language: Java
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-ambient-light
## Description
This plugin can be use to get intensity level that falls in to the device.
The API supports to one time call and repeated calls which will directed to callback functions.## Installation
```
cordova plugin add @red-mobile/cordova-plugin-ambient-light
```### Uninstall
```
cordova plugin remove @red-mobile/cordova-plugin-ambient-light
```## Supported Platforms
- Android
## Methods
- navigator.ambientlight.getCurrentLight
- navigator.ambientlight.watchLight
- navigator.ambientlight.clearWatch