WebAPI/WebSTK: Difference between revisions

No edit summary
Line 691: Line 691:
mozIcc.onstkcommand = function (command) {
mozIcc.onstkcommand = function (command) {
   switch (command.type) {
   switch (command.type) {
     case MozStkCommand.SET_UP_MENU:
     case MozStkCommand.CMD_SET_UP_MENU:
       var menu = command.menu;
       var menu = command.menu;
       // create a Menu-like UI according to 'menu'
       // create a Menu-like UI according to 'menu'
Line 721: Line 721:
mozIcc.onstkcommand = function (command) {
mozIcc.onstkcommand = function (command) {
   switch (command.type) {
   switch (command.type) {
     case MozStkCommand.GET_INPUT:
     case MozStkCommand.CMD_GET_INPUT:
       var input = command.input;
       var input = command.input;
       // create a TextInput-like UI according to 'input'
       // create a TextInput-like UI according to 'input'
Line 741: Line 741:
mozIcc.onstkcommand = function (command) {
mozIcc.onstkcommand = function (command) {
   switch (command.type) {
   switch (command.type) {
     case MozStkCommand.SET_UP_CALL:
     case MozStkCommand.CMD_SET_UP_CALL:
       var call = command.call;
       var call = command.call;
       // create a Text Message UI to ask user confirmation  
       // create a Text Message UI to ask user confirmation  
Confirmed users
266

edits