Ionic Logo
See how Capacitor fits into the Ionic Ecosystem ->
Capacitor Logo
FeaturesDocsCommunityBlogEnterprise
4.1k
Capacitor Logodocsv2.2.0
  • Introduction
  • Getting Started
    • Required Dependencies
    • Installation
    • Using with Ionic
  • Basics
    • Development Workflow
    • Opening Native IDE
    • Building your App
    • Running your App
    • Using Plugins
    • Native Project Configuration
    • Progressive Web Apps
  • Cordova/PhoneGap
    • Introduction
    • Migration Strategy
    • Cordova to Capacitor Migration
    • Cordova/Ionic Native Plugins
    • Known Incompatible Plugins
  • Guides
    • Ionic Photo Gallery App
    • Push Notifications - Firebase
    • Deep Links
    • Deploying and Updating
    • Splash Screens and Icons
    • Community Guides
  • iOS
    • Getting Started
    • Configuration
    • Updating
    • Custom Native Code
    • Deploying to App Store
    • Troubleshooting
  • Android
    • Getting Started
    • Configuration
    • Updating
    • Custom Native Code
    • Deploying to Google Play
    • Troubleshooting
  • Web/PWA
    • Getting Started
    • PWA Elements
  • Electron
    • Getting Started
    • Updating
  • Creating Plugins
    • Introduction
    • Development Workflow
    • iOS Guide
    • Android Guide
    • Web/PWA Guide
    • JavaScript Guide
  • APIs
    • Introduction
    • Community Plugins
    • Accessibility
    • App
    • Background Task
    • Browser
    • Camera
    • Clipboard
    • Console
    • Device
    • Filesystem
    • Geolocation
    • Haptics
    • Keyboard
    • Local Notifications
    • Modals
    • Motion
    • Network
    • Permissions
    • Push Notifications
    • Share
    • Splash Screen
    • Status Bar
    • Storage
    • Toast
DocsBlogCommunity

Motion

The Motion API tracks accelerometer and device orientation (compass heading, etc.)

Example

API

Contributors

BackNext
Contents
  • Example
  • API
Submit an edit