|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.system.Alert
Provides access to the means by which applications can notify the device's operator of interesting events (for example, arrived messages, phone calls, and so forth).
| Method Summary | ||
static void |
startAudio(short[] tune,
int volume)
Starts an audio alert. |
|
static void |
startBuzzer(short[] tune,
int volume)
Starts a buzzer alert. |
|
static void |
startVibrate(int duration)
Starts a vibrate alert. |
|
static void |
stopAudio()
Cancels an audio alert in progress. |
|
static void |
stopBuzzer()
Cancels a buzzer alert in progress. |
|
static void |
stopVibrate()
Cancels a vibrate alert in progress. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void startAudio(short[] tune,
int volume)
When the alert is completed, the AlertListener#audioDone method
is invoked on the event thread.
tune - Tune to play; an array of note frequencies (in Hz) and
durations (in ms). (ie, array[0] == the note to play, array[1] == the duration for that note)volume - Volume, from 1 (softest) to 100 percent (loudest).AlertListener.audioDone(int)
public static void startBuzzer(short[] tune,
int volume)
When the alert is completed, the AlertListener.buzzerDone(...) method
is invoked on the event thread.
tune - Tune to play; an array of note frequencies (in Hz) and
durations (in ms). (ie, array[0] == the note to play, array[1] == the duration for that note)volume - Volume, from 1 (softest) to 100 percent (loudest).AlertListener.buzzerDone(int)public static void startVibrate(int duration)
When the alert is completed, the AlertListener.buzzerDone(...) method
is invoked on the event thread.
duration - Vibrate time, in milliseconds from 0ms to 25500ms.AlertListener.vibrateDone(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.