nsITelephonyListener

Methods

callStateChanged(clientId, callIndex, callState, number, numberPresentation, name, namePresentation, isOutgoing, isEmergency, isConference, isSwitchable, isMergeable)

Notified when a telephony call changes state.

Parameters

clientId Indicate the RIL client, 0 ~ (number of client - 1).
callIndex Call identifier assigned by the RIL.
callState One of the nsITelephonyService::CALL_STATE_* values.
number Number of the other party.
numberPresentation Presentation of the call number. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.
name Name of the other party.
namePresentation Presentation of the call name. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.
isOutgoing Indicates whether this call is outgoing or incoming.
isEmergency Indicates whether this call is an emergency call.
isConference Indicates whether this call is a conference call.
isSwitchable Indicates whether this call can be switched between states of nsITelephonyService::CALL_STATE_CONNECTED and nsITelephonyService::CALL_STATE_HELD.
isMergeable Indicates whether this call be be added into a conference.

conferenceCallStateChanged(callState)

Called when participants of a conference call have been updated, and the
conference call state changes.

Parameters

callState Possible values are: nsITelephonyService::CALL_STATE_UNKNOWN, nsITelephonyService::CALL_STATE_HELD, nsITelephonyService::CALL_STATE_CONNECTED.

enumerateCallStateComplete()

Called when enumeration asked by nsITelephonyService::enumerateCalls
is completed.

enumerateCallState(clientId, callIndex, callState, number, numberPresentation, name, namePresentation, isOutgoing, isEmergency, isConference, isSwitchable, isMergeable)

Called when nsITelephonyService is asked to enumerate the current
telephony call state (nsITelephonyService::enumerateCalls). This is
called once per call that is currently managed by the RIL.

Parameters

clientId Indicate the RIL client, 0 ~ (number of client - 1).
callIndex Call identifier assigned by the RIL.
callState One of the nsITelephonyService::CALL_STATE_* values.
number Number of the other party.
numberPresentation Presentation of the call number. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.
name Name of the other party.
namePresentation Presentation of the call name. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.
isOutgoing Indicates whether this call is outgoing or incoming.
isConference Indicates whether this call is a conference call.
isSwitchable Indicates whether this call can be switched between states of nsITelephonyService::CALL_STATE_CONNECTED and nsITelephonyService::CALL_STATE_HELD.
isMergeable Indicates whether this call be be added into a conference.

supplementaryServiceNotification(clientId, callIndex, notification)

Notify when RIL receives supplementary service notification.

Parameters

clientId Indicate the RIL client, 0 ~ (number of client - 1).
callIndex Call identifier assigned by the RIL. -1 if not specified
notification One of the nsITelephonyService::NOTIFICATION_* values.

notifyError(clientId, callIndex, error)

Called when RIL error occurs.

Parameters

clientId Indicate the RIL client, 0 ~ (number of client - 1).
callIndex Call identifier assigned by the RIL. -1 if no connection
error Error from RIL.

notifyCdmaCallWaiting(clientId, number, numberPresentation, name, namePresentation)

Called when a waiting call comes in CDMA networks.

Parameters

clientId Indicate the RIL client, 0 ~ (number of client - 1).
number Number of the other party.
numberPresentation Presentation of the call number. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.
name Name of the other party.
namePresentation Presentation of the call name. One of the nsITelephonyProvider::CALL_PRESENTATION_* values.

notifyConferenceError(name, message)

Called when RIL error occurs to creating or separating a conference call.

Parameters

name Error name. Possible values are addError and removeError.
message Detailed error message from RIL.