nat-device-screen

1.0.0-alpha.1 • Public • Published

nat-device-screen

Installation

weexpack plugin add nat-device-screen
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'
 
// get info
Nat.screen.info((err, ret) => {
    console.log(ret)
})
 
// get brightness
Nat.brightness.get((err, ret) => {
    console.log(ret)
})
 
// set brightness
Nat.screen.brightness.set(1)
 
// get orientation status
Nat.screen.orientation.status((err, ret) => {
    console.log(ret)
})
 
</script> 

See the Nat Documentation for more details.

Package Sidebar

Install

npm i nat-device-screen

Weekly Downloads

0

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

68.3 MB

Total Files

830

Last publish

Collaborators

  • natjs