• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozIccManager
  6. MozIccManager.sendStkResponse()

MozIccManager.sendStkResponse()

In This Article
  1. Summary
  2. Syntax
    1. Parameters
    2. stkCommand
    3. stkResponse
  3. Specification
  4. See also

This API is available on Firefox OS for internal applications only.

Summary

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

Syntax

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

Parameters

command
A stkCommand object previously received from ICC through the stkcommand event.
response
A stkReponse object to be sent to the ICC.

stkCommand

The stkCommand object is an arbitrary JavaScript object with the following properties (see MozStkCommandEvent for details):

commandNumber
The number of the command issued by the ICC.
typeOfCommand
One of the MozIccManager.STK_CMD_* constants.
commandQualifier
A qualifier number specific to the command.
options
An object providing extra information depending on the value of the typeOfCommand property.

stkResponse

The 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_* constants.
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 object.
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.

Specification

Not part of any specification.

See also

  • MozIccManager
  • MozMobileConnection
  • MozStkCommandEvent

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Method
  • Non Standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, teoli, kscarfone, Sheppy, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:00 AM
See also
  1. Mobile Connection API
  2. Archive
  3. Events
    1. icccardlockerror
    2. cardstatechange
  4. Related pages for Mobile Connection API
    1. CFStateChangeEvent
    2. DataErrorEvent
    3. IccCardLockError
    4. IccCardLockErrorEvent
    5. MozCellBroadcastEvent
    6. MozEmergencyCbModeEvent
    7. MozIccManager
    8. MozMobileCFInfo
    9. MozMobileCellInfo
    10. MozMobileConnection
    11. MozMobileConnectionInfo
    12. MozMobileICCInfo
    13. MozMobileNetworkInfo
    14. MozOtaStatusEvent
    15. MozStkCommandEvent
    16. USSDReceivedEvent