This API is available on Firefox OS for internal applications 仅。
setCallForwardingOption
method is used to configure call forward options.
var request = navigator.mozMobileConnection.setCallForwardingOption(options);
MozMobileCFInfo
interface except for the
active
property which has no meaning when setting such a call forward rule.
A
DOMRequest
object to handle the success or error of the method call.
If the request fails, the request's
error
will be either
RadioNotAvailable
,
RequestNotSupported
,
IllegalSIMorME
,或
GenericFailure
.
var options = {
action : MozMobileCFInfo.CALL_FORWARD_ACTION_ENABLE,
reason : MozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL,
serviceClass: MozMobileConnectionInfo.ICC_SERVICE_CLASS_VOICE,
number : alternatePhoneNumber,
timeSeconds : 5
};
var setOption = navigator.mozMobileConnection.setCallForwardingOption(options);
setOption.onsuccess = function () {
console.log('Options successfully set');
}
setOption.onerror = function () {
console.log('Unable to set options: ' + 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