WebAPI/WebSTK: Difference between revisions

Line 727: Line 727:
<pre>
<pre>
mozIcc.onstkcommand = function (command) {
mozIcc.onstkcommand = function (command) {
   switch (command.type) {
   switch (command.typeOfCommand) {
     case MozStkCommand.CMD_GET_INPUT:
     case mozIcc.STK_CMD_GET_INPUT:
       var input = command.input;
       var input = command.options;
       // create a TextInput-like UI according to 'input'
       // create a TextInput-like UI according to 'input'
     break;
     break;
Confirmed users
266

edits