- From: Dave Raggett <dsr@w3.org>
- Date: Fri, 28 Oct 2011 12:59:33 +0100
- To: Dominique Hazael-Massieux <dom@w3.org>, Anssi Kostiainen <anssi.kostiainen@nokia.com>
- CC: "public-device-apis@w3.org WG" <public-device-apis@w3.org>, public-device-status@w3.org
On 28/10/11 10:32, Dominique Hazael-Massieux wrote: > Le jeudi 27 octobre 2011 à 18:38 +0300, Anssi Kostiainen a écrit : >> Here's the first draft of the Vibration API spec as promised: >> http://dev.w3.org/2009/dap/vibration/ It might be worth comparing features against the Android Vibrator API, see: http://developer.android.com/reference/android/os/Vibrator.html This offers a repeat count for the pattern, as well as a simple vibrate for so many milliseconds: void vibrate(long[] pattern, int repeat) void vibrate(long milliseconds) There is also boolean hasVibrator() void cancel() p.s. I have been playing with exposing the vibrator as a restful service (no pun intended) as part of my work on a service discovery demo for Android phones, which I look forward to an opportunity for showing to the DAP WG next week in Santa Clara. -- Dave Raggett<dsr@w3.org> http://www.w3.org/People/Raggett
Received on Friday, 28 October 2011 12:00:00 UTC