Called when any one who is interested in receiving unsolicited messages
from this nsIMobileConnection instance.
The network types supported by this radio.
an array of DOMString Possible values: 'gsm', 'wcdma', 'cdma', 'evdo', 'lte'. |
Search for available networks.
If successful, the notifyGetNetworksSuccess() will be called. And the
result will be an array of nsIMobileNetworkInfo.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Manually selects the passed in network, overriding the radio’s current
selection.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
network | The manually selecting network. |
requestCallback | Called when request is finished. |
Tell the radio to automatically select a network.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Set preferred network type.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
type | DOMString indicates the desired preferred network type. Possible values: 'wcdma/gsm', 'gsm', 'wcdma', 'wcdma/gsm-auto', 'cdma/evdo', 'cdma', 'evdo', 'wcdma/gsm/cdma/evdo', 'lte/cdma/evdo', 'lte/wcdma/gsm', 'lte/wcdma/gsm/cdma/evdo' or 'lte'. |
requestCallback | Called when request is finished. |
Query current preferred network type.
If successful, the notifySuccessString() will be called. And the result
will be a string indicating the current preferred network type. The value
will be either ‘wcdma/gsm’, ‘gsm’, ‘wcdma’, ‘wcdma/gsm-auto’, ‘cdma/evdo’,
‘cdma’, ‘evdo’, ‘wcdma/gsm/cdma/evdo’, ‘lte/cdma/evdo’, ‘lte/wcdma/gsm’,
‘lte/wcdma/gsm/cdma/evdo’ or ‘lte’.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Set roaming preference.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
mode | DOMString indicates the desired roaming preference. Possible values: 'home', 'affiliated', or 'any'. |
requestCallback | Called when request is finished. |
Query current roaming preference.
If successful, the notifySuccessWithString() will be called. And the result
will be a string indicating the current roaming preference. The value will
be either ‘home’, ‘affiliated’, or ‘any’.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Set voice privacy preference.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
enabled | Boolean indicates the preferred voice privacy mode used in voice scrambling in CDMA networks. 'True' means the enhanced voice security is required. |
requestCallback | Called when request is finished. |
Query current voice privacy mode.
If successful, the notifySuccessWithBoolean() will be called. And the result
will be a boolean indicating the current voice privacy mode.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Send a MMI message.
If successful, the notifySendCancelMmiSuccess*() will be called. And the
result will contain the information about the mmi operation.
Otherwise, the notifyError() will be called.
mmi | DOMString containing an MMI string that can be associated to a USSD request or other RIL functionality. |
requestCallback | Called when request is finished. |
Cancel the current MMI request if one exists.
If successful, the notifySendCancelMmiSuccess*() will be called. And the
result will contain the information about the mmi operation.
Otherwise, the notifyError() will be called.
requestCallback | Called when request is finished. |
Queries current call forwarding options.
If successful, the notifyGetCallForwardingSuccess() will be called. And the
result will be an array of nsIMobileCallForwardingOptions.
@see nsIMobileCallForwardingOptions for the detail of result.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
reason | Indicates the reason the call is being forwarded. It shall be one of the nsIMobileConnectionService.CALL_FORWARD_REASON_* values. |
requestCallback | Called when request is finished. |
Configures call forwarding options.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
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 | When "no reply" is enabled or queried, this gives the time in seconds to wait before call is forwarded. |
serviceClass | One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values. |
requestCallback | Called when request is finished. |
Queries current call barring status.
If successful, the notifyGetCallBarringSuccess() will be called. And the
result will contain correct ‘enabled’ property indicating the status of
this rule.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
program | One of the nsIMobileConnection.CALL_BARRING_PROGRAM_* values. |
password | Call barring password. Use "" if no password specified. |
serviceClass | One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values. |
requestCallback | Called when request is finished. |
Configures call barring option.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
program | One of the nsIMobileConnection.CALL_BARRING_PROGRAM_* values. |
enabled | Enable or disable the call barring program. |
password | Call barring password. Use "" if no password specified. |
serviceClass | One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values. |
requestCallback | Called when request is finished. |
Change call barring facility password.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
pin | Old call barring password. |
newPin | New call barring password. |
requestCallback | Called when request is finished. |
Configures call waiting options.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
enabled | Boolean indicates the desired call waiting status. |
requestCallback | Called when request is finished. |
Queries current call waiting options.
If successful, the notifySuccessWithBoolean() will be called. And the result
will be a boolean indicating the call waiting status.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Enables or disables the presentation of the calling line identity (CLI) to
the called party when originating a call.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘InvalidParameter’,
‘IllegalSIMorME’, or ‘GenericFailure’.
clirMode | One of the nsIMobileConnection.CLIR_* values. |
requestCallback | Called when request is finished. |
Queries current CLIR status.
If successful, the notifyGetClirStatusSuccess() will be called. And the
result will be a an object containing CLIR ‘n’ and ‘m’ parameter.
@see MozClirStatus for the detail of result.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Exit emergency callback mode.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘RadioNotAvailable’, ‘RequestNotSupported’, ‘IllegalSIMorME’, or
‘GenericFailure’.
requestCallback | Called when request is finished. |
Set radio enabled/disabled.
If successful, the notifySuccess() will be called.
Otherwise, the notifyError() will be called, and the error will be either
‘InvalidStateError’, ‘RadioNotAvailable’, ‘IllegalSIMorME’, or
‘GenericFailure’.
Note: Request is not available when radioState is null, ‘enabling’, or
‘disabling’. Calling the function in above conditions will receive
‘InvalidStateError’ error.
enabled | Boolean indicates the desired radio power. True to enable the radio. |
requestCallback | Called when request is finished. |
Request neighboring cell ids in GSM/UMTS network.
callback | Called when request is finished. See nsINeighboringCellIdsCallback for details. |
Request all of the current cell information known to the radio, including
neighboring cells.
callback | Called when request is finished. See nsICellInfoListCallback for details. |
String of format ‘
String of format ‘
Connection information about the voice.
Connection information about the data.
The integrated circuit card identifier of the SIM.
The selection mode of the voice and data networks. One of the
nsIMobileConnection.NETWORK_SELECTION_MODE_* values.
Current radio state. One of the nsIMobileConnection.MOBILE_RADIO_STATE_*
values.
Call forwarding action.
@see 3GPP TS 27.007 7.11 “mode”.
Call forwarding reason.
@see 3GPP TS 27.007 7.11 “reason”.
Call barring program.
Calling line identification restriction constants.
@see 3GPP TS 27.007 7.7 Defined values.
Network selection mode.
Mobile Radio State.