|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.adapters.incomingCallAdapter.IncomingCallAdapter
public final class IncomingCallAdapter
This adapter allows you to handle incomming calls.
Indicates the number of caller and how many times it has rung already.
Example:
import com.alarexgroup.m2mplf.M2Mlet;
|
| Field Summary | |
|---|---|
static int |
CALL_STATUS_ACTIVE
Call active |
static int |
CALL_STATUS_ALERTING
Call alerting |
static int |
CALL_STATUS_DIALING
Call dialing |
static int |
CALL_STATUS_HELD
Call held |
static int |
CALL_STATUS_INCOMING
Call incomming |
static int |
CALL_STATUS_WAITING
Call waiting |
static int |
CALL_TYPE_DATA
Data call |
static int |
CALL_TYPE_FAX
Fax call |
static int |
CALL_TYPE_UNKNOWN
Unknown call |
static int |
CALL_TYPE_VOICE
Voice call |
static int |
HANGUP_BUSY
Busy |
static int |
HANGUP_NORMAL_CLEARING
Normal hangup |
static int |
HANGUP_NORMAL_UNSPECIFIED
Normal hangup |
static int |
HANGUP_NOT_RESPONDING
Not responding |
static int |
HANGUP_OUT_OF_ORDER
Out of order |
static int |
HANGUP_UNASSIGNED_NUMBER
Unassigned number |
| Method Summary | |
|---|---|
static IncomingCallAdapter |
getIncomingCallAdapter(IncomingCallAdapterListener listener)
Initializes the adapter |
void |
hangUpCall(int type)
Hang up incomming call |
void |
onURCEvent(java.lang.String urc)
Internal method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HANGUP_UNASSIGNED_NUMBER
public static final int HANGUP_NORMAL_CLEARING
public static final int HANGUP_BUSY
public static final int HANGUP_NOT_RESPONDING
public static final int HANGUP_OUT_OF_ORDER
public static final int HANGUP_NORMAL_UNSPECIFIED
public static final int CALL_STATUS_ACTIVE
public static final int CALL_STATUS_HELD
public static final int CALL_STATUS_DIALING
public static final int CALL_STATUS_ALERTING
public static final int CALL_STATUS_INCOMING
public static final int CALL_STATUS_WAITING
public static final int CALL_TYPE_VOICE
public static final int CALL_TYPE_DATA
public static final int CALL_TYPE_FAX
public static final int CALL_TYPE_UNKNOWN
| Method Detail |
|---|
public static IncomingCallAdapter getIncomingCallAdapter(IncomingCallAdapterListener listener)
listener - Listener
public void onURCEvent(java.lang.String urc)
onURCEvent in interface ATCommanderListenerurc - AT eventpublic void hangUpCall(int type)
type - type of hanging upHANGUP_UNASSIGNED_NUMBER,
HANGUP_NORMAL_CLEARING,
HANGUP_BUSY,
HANGUP_NOT_RESPONDING,
HANGUP_OUT_OF_ORDER,
HANGUP_NORMAL_UNSPECIFIED
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||