com.motorola.oem.hapi
Interface A2dEventListener


public interface A2dEventListener

A listener to A2d events related to specific channel. Implementing class will receive notify of events occurrence, and therefor will be able to determine specific handling for each event. Code handling events should reside in.


Field Summary
static int NOTIFICATIONS_ON_PERIOD
          Constant which specify NOTIFICATIONS_ON_PERIOD report.
static int NOTIFICATIONS_ON_THRESHOLD_BACK_TO_RANGE
          Constant which specify NOTIFICATIONS_ON_THRESHOLD_BACK_TO_RANGE report.
static int NOTIFICATIONS_ON_THRESHOLD_OUT_OF_RANGE
          Constant which specify NOTIFICATIONS_ON_THRESHOLD_OUT_OF_RANGE report.
 
Method Summary
 void onNotification(int notificationType, int channelNum, int a2dValue)
           Method will be called on arrived of a2d notification to VM.
 

Field Detail

NOTIFICATIONS_ON_PERIOD

static final int NOTIFICATIONS_ON_PERIOD
Constant which specify NOTIFICATIONS_ON_PERIOD report.

See Also:
Constant Field Values

NOTIFICATIONS_ON_THRESHOLD_OUT_OF_RANGE

static final int NOTIFICATIONS_ON_THRESHOLD_OUT_OF_RANGE
Constant which specify NOTIFICATIONS_ON_THRESHOLD_OUT_OF_RANGE report.

See Also:
Constant Field Values

NOTIFICATIONS_ON_THRESHOLD_BACK_TO_RANGE

static final int NOTIFICATIONS_ON_THRESHOLD_BACK_TO_RANGE
Constant which specify NOTIFICATIONS_ON_THRESHOLD_BACK_TO_RANGE report.

See Also:
Constant Field Values
Method Detail

onNotification

void onNotification(int notificationType,
                    int channelNum,
                    int a2dValue)

Method will be called on arrived of a2d notification to VM.

Parameters:
notificationType - notification type according A2dEventListener interface constants definition.
channelNum - channel number that event related to.A2dManager.CH1 A2dManager.CH2 A2dManager.CH3
a2dValue - A2d value