• cordova中文文档
  • 插件
  • cordova博客
  • cordova中文社区
  • 贡献
  • 快速开始
  • Introduction
    • Overview
  • Create apps
    • Create your first app
    • Templates for apps
    • Platform support
    • Develop for platforms
      • Android
      • iOS
      • Windows
      • OS X
    • Manage versions and platforms
    • Customize icons
    • Store data
    • Manage privacy
    • Manage security
    • Whitelisting
  • Create plugins
    • Create a plugin
    • Develop for platforms
      • Android
      • iOS
      • Windows
    • Use Plugman
  • Advanced Topics
    • Embed Cordova in native apps
    • Next Steps
  • Reference
    • Config.xml
    • Events
    • CLI Reference
    • Hooks
    • Plugin.xml
    • Plugin APIs
      • Battery Status
      • Camera
      • Device
      • Dialogs
      • File
      • Geolocation
      • Inappbrowser
      • Media
      • Media Capture
      • Network Information
      • Screen Orientation
      • Splashscreen
      • Statusbar
      • Vibration
      • Whitelist
  • Overview
  • Create your first app
  • Templates for apps
  • Platform support
  • Android
  • iOS
  • Windows
  • OS X
  • Manage versions and platforms
  • Customize icons
  • Store data
  • Manage privacy
  • Manage security
  • Whitelisting
  • Create a plugin
  • Android
  • iOS
  • Windows
  • Use Plugman
  • Embed Cordova in native apps
  • Next Steps
  • Config.xml
  • Events
  • CLI Reference
  • Hooks
  • Plugin.xml
  • Battery Status
  • Camera
  • Device
  • Dialogs
  • File
  • Geolocation
  • Inappbrowser
  • Media
  • Media Capture
  • Network Information
  • Screen Orientation
  • Splashscreen
  • Statusbar
  • Vibration
  • Whitelist
Edit
  • English
  • 简体中文
  • 繁體中文
  • dev
  • 9.x (Latest)
  • 8.x
  • 7.x
  • 6.x
This version of the documentation is outdated! Click here for the latest released version.
This documentation describes this plugin at version master. Other versions are on GitHub.
AppVeyor Travis CI
Build status Build Status

cordova-plugin-device-motion


Description

Deprecation Notice

With the W3C Device Motion and Orientation API now being supported on iOS, Android and Windows devices, this plugin is not needed any more. Migrating from this plugin to the W3C Device Motion and Orientation API is explained in this PhoneGap blog post.

More Resources

General

  • Apache Project Page
  • Source Distribution
  • License
  • Artwork

Development

  • Source Code
  • Issue Tracker
  • Stack Overflow
  • Mailing List
  • Nightly builds

Apache Software Foundation

  • About ASF
  • Become a Sponsor
  • Thanks
  • Security

Contribute

Help Cordova move forward!

Report bugs, improve the docs, or contribute to the code.

Learn More

Follow @apachecordova

Copyright © 2012, 2013, 2015 Apache软件基金会, 许可授权在 Apache License, Version 2.0.
Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
"Raleway" font used under license. For details see the attributions page.