public final class TelephonyEvent
extends java.lang.Object
Telephony implementation.| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWERED
A call has been answered.
|
static int |
HUNGUP
A hangup occured.
|
static int |
PLAY_STARTED
A play has been started.
|
static int |
PLAY_STOPPED
A play has been stopped.
|
static int |
RECORD_STARTED
A record has been started.
|
static int |
RECORD_STOPPED
A record has been stopped.
|
static int |
TRANSFERRED
A call has been transferred.
|
| Constructor and Description |
|---|
TelephonyEvent(Telephony telephony,
int eventType)
Constructs a new object.
|
TelephonyEvent(Telephony telephony,
int eventType,
java.lang.Object parameter)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEvent()
Retrieves the event type.
|
java.lang.Object |
getParam()
Retrieves the parameter.
|
Telephony |
getSource()
Retrieves the object that caused the event.
|
public static final int ANSWERED
public static final int HUNGUP
public static final int PLAY_STARTED
public static final int PLAY_STOPPED
public static final int RECORD_STARTED
public static final int RECORD_STOPPED
public static final int TRANSFERRED
public TelephonyEvent(Telephony telephony, int eventType)
telephony - object that caused the event.eventType - event identifier.public TelephonyEvent(Telephony telephony, int eventType, java.lang.Object parameter)
telephony - object that caused the event.eventType - event identifier.parameter - optional parameter.public Telephony getSource()
public int getEvent()
public java.lang.Object getParam()
null.