Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mxmp

nm-cmd3MIT1.0.0

Next generation mobile framework for building native / hybrid apps.

mxmp, mxmpjs, mxmp.js, native, vue, haokuai, moxin, weex, weex-mxmp, hybrid, app, mobile, bridge

readme

MXMP.js

npm license

Next generation mobile framework for building native / hybrid apps.

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