1.0.0 • Published 5 years ago

mxmp v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

MXMP.js

npm license

Next generation mobile framework for building native / hybrid apps.

Links

Documentation

To check out docs and examples, visit haokuai.cn.

MXMP Explorer

MXMP Explorer is a mxmp example app, help you explore MXMP modules instantly. Source Code

Available on App Store    Android App on Google Play

Also, you can download it directly by scan the QRcode below.

Installation

npm install mxmp --save

Add mxmp moudles you need from weex plugin market

weexpack plugin add [mxmp moudle]

Usage

Use MXMP in vue/weex file (.vue/.we)

<script>
import mx from 'mxmp'

// Make a phone call
mx.call('415-736-0000')

// Take a photo
mx.camera.captureImage((err, ret) => {
    console.log('Path: ', ret.path)
})

// Get device info
mx.device.info((err, ret) => {
    console.log('Info: ', ret)
})

</script>

Modules

  • camera
  • communication
  • geolocation
  • media
    • image
    • audio
    • video
  • modal
  • recorder
  • steam
  • transfer
  • sensor
    • accelerometer
    • compass
  • device
    • info
    • network
    • vibration
    • screen
    • volume
    • battery
  • third-party
    • alipay
    • wechat

Supported Platforms

  • Android
  • iOS

License

MIT

Copyright (c) 2017-present, nm-cmd@haokuai.cn