This API is available on Firefox OS for internal applications 仅。
getCallForwardingOption
method is used to query current options for call forwarding.
var request = navigator.mozMobileConnection.getCallForwardingOption(reason);
reason
0
: unconditional
1
: mobile busy
2
: no reply
3
: not reachable
4
: forwarding all calls
5
: conditionally forwarding all calls
MozMobileCFInfo
接口。
A
DOMRequest
object to handle the success or failure of the method call.
If the request is successful, the request's
result
是数组化的
MozMobileCFInfo
对象。
Otherwise, the request's
error
is one of:
RadioNotAvailable
RequestNotSupported
GenericFailure
var request = navigator.mozMobileConnection.getCallForwardingOption(MozMobileCFInfo.CALL_FORWARD_REASON_NO_REPLY);
request.onsuccess = function () {
this.result.forEach(function (CFInfo) {
console.log(CFInfo);
});
}
request.onerror = function () {
console.log('operation failed: ' + this.error.name);
}
Not part of any specification.
Archive
CFStateChangeEvent
DataErrorEvent
IccCardLockError
IccCardLockErrorEvent
MozCellBroadcastEvent
MozEmergencyCbModeEvent
MozIccManager
MozMobileCFInfo
MozMobileCellInfo
MozMobileConnection
MozMobileConnectionInfo
MozMobileICCInfo
MozMobileNetworkInfo
MozOtaStatusEvent
MozStkCommandEvent
USSDReceivedEvent