net.rim.device.api.system
Interface AlertListener

All Known Subinterfaces:
AlertListener2

public interface AlertListener

Provides functionality for receiving alert events.

Use Application.addAlertListener(AlertListener) to receive notifications via this interface.

Since:
JDE 3.6.0

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.
Since:
JDE 3.6.0

REASON_KEY_PRESSED

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

REASON_STOP_CALLED

public static final int REASON_STOP_CALLED
The alert is cancelled via a call to one of the Alert.stop methods.
Since:
JDE 3.6.0
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.0

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.0

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.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.