This API is available on Firefox OS for internal applications 仅。

摘要

sendStkResponse method is used to send a response back to ICC after an attempt to execute STK Proactive Command.

句法

navigator.mozMobileConnection.icc.sendStkResponse(command, response);
					

参数

命令
A stkCommand object previously received from ICC 透过 stkcommand 事件。
response
A stkReponse object to be sent to the ICC .

stkCommand

stkCommand object is an arbitrary JavaScript object with the following properties (see MozStkCommandEvent 了解细节):

commandNumber
The number of the command issued by the ICC .
typeOfCommand
One of the MozIccManager.STK_CMD_* 常量。
commandQualifier

A qualifier number specific to the command.

选项
An object providing extra information depending on the value of the typeOfCommand 特性。

stkResponse

stkResponse object is an arbitrary JavaScript object with the following properties (the required properties depend on the command type):

resultCode
One of the MozIccManager.STK_RESULT_* 常量。
itemIdentifier
The number identifier of the item selected by the user. The full list of available items is usually retrieved through the options of the stkCommand 对象。
input

A string representing any user input.

isYesNo

A boolean representing a Yes/No answer.

hasConfirm
A boolean to notify if the user has confirmed or rejected the call during MozIccManager.STK_CMD_CALL_SET_UP .
localInfo
The response for MozIccManager.STK_CMD_PROVIDE_LOCAL_INFO .
timer
The response for MozIccManager.STK_CMD_TIMER_MANAGEMENT .

规范

Not part of any specification.

另请参阅

元数据

  • 最后修改: