cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/8] cordova-plugin-vibration git commit: CB-6914 added cancelVibration for wp8
Date Mon, 18 May 2015 22:33:25 GMT
Repository: cordova-plugin-vibration
Updated Branches:
  refs/heads/master da67e34d3 -> e29d45c1c


CB-6914 added cancelVibration for wp8


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/faa3d626
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/faa3d626
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/faa3d626

Branch: refs/heads/master
Commit: faa3d626d8f941273b8edadeb48f7f30af198a53
Parents: 112254e
Author: Staci Cooper <smcooper@us.ibm.com>
Authored: Tue Jul 29 11:08:33 2014 -0400
Committer: Staci Cooper <smcooper@us.ibm.com>
Committed: Tue Jul 29 11:08:33 2014 -0400

----------------------------------------------------------------------
 src/wp/Vibration.cs | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/faa3d626/src/wp/Vibration.cs
----------------------------------------------------------------------
diff --git a/src/wp/Vibration.cs b/src/wp/Vibration.cs
index cd58d67..8d54d94 100644
--- a/src/wp/Vibration.cs
+++ b/src/wp/Vibration.cs
@@ -53,5 +53,11 @@ namespace WPCordovaClassLib.Cordova.Commands
             // TODO: may need to add listener to trigger DispatchCommandResult when the vibration
ends...
             DispatchCommandResult();
         }
+
+        public void cancelVibration(string options)
+        {
+            VibrateController.Default.Stop();
+            DispatchCommandResult();
+        }
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message