public interface SlangIntentAction extends SlangAction
SlangBuddyduring initialization, the implementation will be called by the Slang platform, whenever an intent is resolved.
|Modifier and Type||Method and Description|
The action method to be implemented by applications that are interested in being notified when an utterance spoken by the user is resolved into a
SlangAction.Status action(SlangIntent intent, SlangSession session)
intent- - the
SlangIntentresolved by Slang from the user utterance
session- - the current session
SlangAction.Status.SUCCESSif the action was handled successfully by the application, else
SlangAction.Status.FAILURE. Upon success, the Slang platform speaks the success completion statement, if configured, else speaks the failure completion statement, if configured.