1.0.0 • Published 3 years ago

@red-mobile/cordova-plugin-ambient-light v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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