WebAPI/WebSTK: Difference between revisions

Jump to navigation Jump to search
Line 530: Line 530:
</pre>
</pre>


== Menu Selection/Select Item ==  
== Select Item ==  
 
<pre>
<pre>
// 'command' is got from onstkcommand
// 'command' is got from onstkcommand
// and assume it's a SET_UP_MENU command.
// and assume it's a Select Item command.
var response = new MozStkResponse(command);
var response = new MozStkResponse(command);
response.resultCode = MozStkResultCode.RESULT_OK;
response.resultCode = MozStkResultCode.RESULT_OK;
// 'id' is got from the chosen item identifier (menu.item[].identifier)
// 'id' is got from the chosen item identifier (menu.item[].identifier)
response.menuSelection = id;
response.itemIdentifier = id;
mobileConnection.sendStkResponse(response);
mobileConnection.sendStkResponse(response);
</pre>
</pre>
Confirmed users
266

edits

Navigation menu