mxmp

1.0.0 • Public • Published

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.

Download Mxmp Explorer

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

Package Sidebar

Install

npm i mxmp

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

56.8 kB

Total Files

32

Last publish

Collaborators

  • nm-cmd