Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

NotifyAction - addGather()

NotifyAction - addGather()

Present an interactive phone menu to the user.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
GatherAction The action added to the NotifyAction object. Use the GatherAction object to define the menu settings and options to present to the user.

// instantiate NotifyAction
var notifyAction = new SNC.NotifyAction();

// present the user with a menu
var gather = notifyAction.addGather();
gather.setNumberOfDigits(1);    // the user can type 1 digit
gather.setFinishKey('#');       // # or *, usefull for > 1 digits
gather.setTimeout(10);          // time to enter answer, in seconds

// add first menu item
var usSay = gather.addSay();
usSay.setText('Press 1 for english');

// add second menu item
var nlSay = gather.addSay();
nlSay.setText('Kies 2 voor Nederlands');

// add third menu item
var frSay = gather.addSay();
frSay.setText('Choisissez 3 pour le fran├žais.');

// and finish off with an applause
var play = gather.addPlay();

This site is scheduled for a small content update on Monday, November 19th, between the hours of 3:30pm and 5:00pm Pacific Time (Nov 19 23:30 – Nov 20 1:00 UTC). Acces to this site may be slightly delayed during that time.