cordova-plugin-shake
Advanced tools
Comparing version
{ | ||
"name": "cordova-plugin-shake", | ||
"version": "0.5.4", | ||
"version": "0.6.0", | ||
"author": "Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)", | ||
@@ -5,0 +5,0 @@ "description": "Cordova Plugin to detect when a physical device performs a shake gesture.", |
@@ -1,6 +0,7 @@ | ||
## Shake Gesture Detection for Cordova [](http://badge.fury.io/js/cordova-plugin-shake) | ||
# Shake Gesture Detection for Cordova [](http://badge.fury.io/js/cordova-plugin-shake) | ||
Apache Cordova / PhoneGap Plugin to detect when a physical device performs a shake gesture. | ||
This is based on a standalone JavaScript implementation I wrote last year ([gist](https://gist.github.com/leecrossley/4078996)). | ||
For iOS, the plugin uses the native shake detection. | ||
Fo all other platforms, it is based on a standalone JavaScript implementation I wrote last year ([gist](https://gist.github.com/leecrossley/4078996)). | ||
@@ -11,21 +12,21 @@ ## Install | ||
#### Latest published version on npm | ||
### Latest published version on npm | ||
``` | ||
```bash | ||
cordova plugin add cordova-plugin-shake | ||
``` | ||
#### Latest version from GitHub | ||
### Latest version from GitHub | ||
``` | ||
```bash | ||
cordova plugin add https://github.com/leecrossley/cordova-plugin-shake.git | ||
``` | ||
### Usage | ||
## Usage | ||
You **do not** need to reference any JavaScript, the Cordova plugin architecture will add a shake object to your root automatically when you build. | ||
**NB:** There is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added). | ||
**NB:** For non-iOS platforms, there is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added). | ||
### Example | ||
## Example | ||
@@ -32,0 +33,0 @@ ```js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20413
37.85%11
22.22%152
114.08%52
1.96%