nsIMobileConnectionListener

Methods

notifyVoiceChanged()

Notify when voice info is changed.

notifyDataChanged()

Notify when data info is changed.

notifyUssdReceived(message, sessionEnded)

Notify when ussd is received.

Parameters

message The ussd request in string format.
sessionEnded Indicates whether the session is ended.

notifyDataError(message)

Notify when data call is failed to establish.

Parameters

message Error message from RIL.

notifyCFStateChanged(action, reason, number, timeSeconds, serviceClass)

Notify when call forwarding state is changed.

Parameters

action One of the nsIMobileConnection.CALL_FORWARD_ACTION_* values.
reason One of the nsIMobileConnection.CALL_FORWARD_REASON_* values.
number Phone number of forwarding address.
timeSeconds The time in seconds should wait before call is forwarded.
serviceClass One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.

notifyEmergencyCbModeChanged(active, timeoutMs)

Notify when emergency callback mode is changed.

Parameters

active Indicates whether the emergency callback mode is activated.
timeoutMs The timeout in millisecond for emergency callback mode.

notifyOtaStatusChanged(status)

Notify when ota status is changed.

Parameters

status Ota status. Possible values: 'spl_unlocked', 'spc_retries_exceeded', 'a_key_exchanged', 'ssd_updated', 'nam_downloaded', 'mdn_downloaded', 'imsi_downloaded', 'prl_downloaded', 'committed', 'otapa_started', 'otapa_stopped', 'otapa_aborted'.

notifyIccChanged()

Notify when icc id is changed.

notifyRadioStateChanged()

Notify when radio state is changed.

notifyClirModeChanged(mode)

Notify when clir mode is changed.

Parameters

mode One of the nsIMobileConnection.CLIR_* values.

notifyLastKnownNetworkChanged()

Notify when last known network is changed.

notifyLastKnownHomeNetworkChanged()

Notify when last known home network is changed.

notifyNetworkSelectionModeChanged()

Notify when network selection mode is changed.