Skip to content
/ mxmp Public

A powerful kit for adding native functionalities to your weex app.

Notifications You must be signed in to change notification settings

nm-cmd/mxmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A powerful kit for adding native functionalities to your weex app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published