UNPKG

ionic-native

Version:

Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support

24 lines (23 loc) 573 B
import { Observable } from 'rxjs/Observable'; /** * @name Shake * @description Handles shake gesture * @usage * ```typescript * import {Shake} from 'ionic-native'; * * let watch = Shake.startWatch(60).subscribe(() => { * // do something * }); * * watch.unsubscribe(); * ``` */ export declare class Shake { /** * Watch for shake gesture * @param sensitivity {number} Optional sensitivity parameter. Defaults to 40 * @returns {Observable<any>} */ static startWatch(sensitivity?: number): Observable<any>; }