SlangIntentAction

  • All Superinterfaces:SlangAction

    public interface SlangIntentAction
    extends SlangAction

    This interface is expected to be implemented by applications that are interested in taking action upon intent resolution by the Slang platform. When an implementation of this interface is registered with SlangBuddy during initialization, the implementation will be called by the Slang platform, whenever an intent is resolved.Since:1.0.0

    • Method Detail

      • action

        SlangAction.Status action(SlangIntent intent,
                                  SlangSession session)

        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 SlangIntent by Slang.Parameters:intent - - the SlangIntent resolved by Slang from the user utterancesession - - the current sessionReturns:- SlangAction.Status.SUCCESS if 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.

Last updated