UNPKG

573 BTypeScriptView Raw
1import { Observable } from 'rxjs/Observable';
2/**
3 * @name Shake
4 * @description Handles shake gesture
5 * @usage
6 * ```typescript
7 * import {Shake} from 'ionic-native';
8 *
9 * let watch = Shake.startWatch(60).subscribe(() => {
10 * // do something
11 * });
12 *
13 * watch.unsubscribe();
14 * ```
15 */
16export declare class Shake {
17 /**
18 * Watch for shake gesture
19 * @param sensitivity {number} Optional sensitivity parameter. Defaults to 40
20 * @returns {Observable<any>}
21 */
22 static startWatch(sensitivity?: number): Observable<any>;
23}