From 4a38c02c14d6947a2475ba8bc6f40ad47589e8ac Mon Sep 17 00:00:00 2001 From: mhartington Date: Thu, 7 Jul 2016 11:48:22 -0400 Subject: [PATCH] docs(deviceMotion): update docs --- src/plugins/devicemotion.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/plugins/devicemotion.ts b/src/plugins/devicemotion.ts index 96ee680c5..200d49906 100644 --- a/src/plugins/devicemotion.ts +++ b/src/plugins/devicemotion.ts @@ -70,7 +70,6 @@ export class DeviceMotion { /** * Get the current acceleration along the x, y, and z axes. - * * @returns {Promise} Returns object with x, y, z, and timestamp properties */ @Cordova() @@ -80,18 +79,8 @@ export class DeviceMotion { /** * Watch the device acceleration. Clear the watch by unsubscribing from the observable. - * - * ```ts - * // Watch device acceleration - * var subscription = DeviceMotion.watchPosition().subscribe(acceleration => { - * console.log(acceleration); - * }); - * - * // Stop watch - * subscription.unsubscribe(); - * ``` - * @param options - * @returns {Observable} + * @param {AccelerometerOptions} options list of options for the accelerometer. + * @returns {Observable} Observable returns an observable that you can subscribe to */ @Cordova({ callbackOrder: 'reverse',