net.rim.device.api.system
Interface AlertListener


public interface AlertListener

Provides functionality for receiving alert events.


Field Summary
static int REASON_COMPLETED
          The alert is completed normally.
static int REASON_KEY_PRESSED
          The alert is cancelled by the user pressing a key.
static int REASON_STOP_CALLED
          The alert is cancelled via a call to one of the Alert.stop methods.
 
Method Summary
 void audioDone(int reason)
          Invoked when an audio alert ends.
 void buzzerDone(int reason)
          Invoked when a buzzer alert ends.
 void vibrateDone(int reason)
          Invoked when a vibrate alert ends.
 

Field Detail

REASON_COMPLETED

public static final int REASON_COMPLETED
The alert is completed normally.

REASON_KEY_PRESSED

public static final int REASON_KEY_PRESSED
The alert is cancelled by the user pressing a key.

REASON_STOP_CALLED

public static final int REASON_STOP_CALLED
The alert is cancelled via a call to one of the Alert.stop methods.
Method Detail

audioDone

public void audioDone(int reason)
Invoked when an audio alert ends.
Parameters:
reason - Reason; one of REASON_COMPLETED, REASON_KEY_PRESSED, REASON_STOP_CALLED.
Since:
JDE 3.6

buzzerDone

public void buzzerDone(int reason)
Invoked when a buzzer alert ends.
Parameters:
reason - Reason; one of REASON_COMPLETED, REASON_KEY_PRESSED, REASON_STOP_CALLED.
Since:
JDE 3.6

vibrateDone

public void vibrateDone(int reason)
Invoked when a vibrate alert ends.
Parameters:
reason - Reason; one of REASON_COMPLETED, REASON_KEY_PRESSED, REASON_STOP_CALLED.
Since:
JDE 3.6


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.