mxmp
v1.0.0
Published
Next generation mobile framework for building native / hybrid apps.
Downloads
1
Maintainers
Readme
MXMP.js
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
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
Supported Platforms
- Android
- iOS
License
Copyright (c) 2017-present, [email protected]