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:
BlackBerry API 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.
static int REASON_TRACKBALL_ROLLED
          The alert is cancelled by the user rolling the trackball.
 
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

static final int REASON_COMPLETED
The alert is completed normally.

See Also:
Constant Field Values
Since:
BlackBerry API 3.6.0

REASON_KEY_PRESSED

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

See Also:
Constant Field Values
Since:
BlackBerry API 3.6.0

REASON_STOP_CALLED

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

See Also:
Constant Field Values
Since:
BlackBerry API 3.6.0

REASON_TRACKBALL_ROLLED

static final int REASON_TRACKBALL_ROLLED
The alert is cancelled by the user rolling the trackball.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0


Method Detail

audioDone

void audioDone(int reason)
Invoked when an audio alert ends.

Parameters:
reason - Reason; one of AlertListener.REASON_COMPLETED, AlertListener.REASON_KEY_PRESSED, AlertListener.REASON_STOP_CALLED.
Since:
BlackBerry API 3.6.0

buzzerDone

void buzzerDone(int reason)
Invoked when a buzzer alert ends.

Parameters:
reason - Reason; one of AlertListener.REASON_COMPLETED, AlertListener.REASON_KEY_PRESSED, AlertListener.REASON_STOP_CALLED.
Since:
BlackBerry API 3.6.0

vibrateDone

void vibrateDone(int reason)
Invoked when a vibrate alert ends.

Parameters:
reason - Reason; one of AlertListener.REASON_COMPLETED, AlertListener.REASON_KEY_PRESSED, AlertListener.REASON_STOP_CALLED.
Since:
BlackBerry API 3.6.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.