Package com.vonage.client.voice.ncco
Class DtmfSettings.Builder
java.lang.Object
com.vonage.client.voice.ncco.DtmfSettings.Builder
- Enclosing class:
DtmfSettings
Builder for specifying DTMF settings.
- Since:
- 8.9.4
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the DtmfSettings with this builder's properties.maxDigits(int maxDigits) The number of digits the user can press.submitOnHash(boolean submitOnHash) Set totrueso the callee's activity is sent to your webhook endpoint ateventUrlafter they press#.timeOut(int timeOut) The result of the callee's activity is sent to theeventUrlwebhook endpointtimeOutseconds after the last action.
-
Method Details
-
timeOut
The result of the callee's activity is sent to theeventUrlwebhook endpointtimeOutseconds after the last action. The default value is 3. Max is 10.- Parameters:
timeOut- The DTMF input timeout in seconds as an int.- Returns:
- This builder.
-
maxDigits
The number of digits the user can press. The maximum value is 20, the default is 4 digits.- Parameters:
maxDigits- The number of digits as an int.- Returns:
- This builder.
-
submitOnHash
Set totrueso the callee's activity is sent to your webhook endpoint ateventUrlafter they press#. If # is not pressed the result is submitted aftertimeOutseconds. The default value isfalse. That is, the result is sent to your webhook endpoint aftertimeOutseconds.- Parameters:
submitOnHash- Whether to submit the input after pressing the hash key.- Returns:
- This builder.
-
build
Builds the DtmfSettings with this builder's properties.- Returns:
- A new DtmfSettings instance.
-