CB-5658 Delete stale snapshot of plugin docs
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/c61cbdfa Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/c61cbdfa Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/c61cbdfa Branch: refs/heads/master Commit: c61cbdfa4edb3d858eb91c0f99ed6cf76a89df7f Parents: 0e97e1f Author: Andrew Grieve <[email protected]> Authored: Tue Dec 17 20:49:39 2013 -0500 Committer: Andrew Grieve <[email protected]> Committed: Tue Dec 17 20:49:39 2013 -0500 ---------------------------------------------------------------------- docs/notification.vibrate.md | 103 -------------------------------------- 1 file changed, 103 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/c61cbdfa/docs/notification.vibrate.md ---------------------------------------------------------------------- diff --git a/docs/notification.vibrate.md b/docs/notification.vibrate.md deleted file mode 100644 index 5a13ab3..0000000 --- a/docs/notification.vibrate.md +++ /dev/null @@ -1,103 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -notification.vibrate -==================== - -Vibrates the device for the specified amount of time. - - navigator.notification.vibrate(milliseconds) - -- __time:__ Milliseconds to vibrate the device. 1000 milliseconds equals 1 second (`Number`) - -Supported Platforms -------------------- - -- Android -- BlackBerry WebWorks (OS 5.0 and higher) -- iPhone -- Windows Phone 7 and 8 -- Bada 1.2 & 2.x - -Quick Example -------------- - - // Vibrate for 2.5 seconds - // - navigator.notification.vibrate(2500); - -Full Example ------------- - - <!DOCTYPE html> - <html> - <head> - <title>Notification Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova-x.x.x.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for Cordova to load - // - document.addEventListener("deviceready", onDeviceReady, false); - - // Cordova is ready - // - function onDeviceReady() { - // Empty - } - - // Show a custom alert - // - function showAlert() { - navigator.notification.alert( - 'You are the winner!', // message - 'Game Over', // title - 'Done' // buttonName - ); - } - - // Beep three times - // - function playBeep() { - navigator.notification.beep(3); - } - - // Vibrate for 2 seconds - // - function vibrate() { - navigator.notification.vibrate(2000); - } - - </script> - </head> - <body> - <p><a href="#" onclick="showAlert(); return false;">Show Alert</a></p> - <p><a href="#" onclick="playBeep(); return false;">Play Beep</a></p> - <p><a href="#" onclick="vibrate(); return false;">Vibrate</a></p> - </body> - </html> - -iPhone Quirks -------------- - -- __time:__ Ignores the time and vibrates for a pre-set amount of time. - - navigator.notification.vibrate(); - navigator.notification.vibrate(2500); // 2500 is ignored
