SlangUIProvider
Modifier and Type Method and Description void
onCreate
(Activity activity,
SlangUIDelegate
delegate)
Called by the Slang platform after initialization succeeds, and is ready to start receiving user inputs via the UI void
onDestroy
()
Called by the Slang platform to clean up and remove the UI void
onDisabled
(
SlangException
e)
Called by the Slang platform when Slang initialization fails void
onDismissed
()
Called by the Slang platform when the UI needs to be dismissed void
onHelpRequested
()
Called by the Slang platform when help is requested, either by the user explicitly, or implicitly, based on certain signals. void
onHelpRequested
(Set<String> intentsFilter)
Called by the Slang platform when help is requested, either by the user explicitly, or implicitly, based on certain signals. void
onListeningEnded
()
Called by the Slang platform when it stops listening to speech from the user. void
onListeningError
(String error, Locale locale)
Called by the Slang platform when it encounters an error while listening to user's speech. void
onListeningStarted
()
Called by the Slang platform when it starts listening to user speech. void
onListeningTimedOut
()
Called by the Slang platform when it times out while listening to speech from the user. void
onSlangProcessingEnded
()
Called by the Slang platform whenever Slang is finished processing some data. void
onSlangProcessingError
(String error, Locale locale)
Called by the Slang platform whenver it encounters an error while processing data. void
onSlangProcessingStarted
()
Called by the Slang platform whenever Slang is processing some data. void
onSlangTextAvailable
(String text, Locale locale)
Called by the Slang platform whnever there is text to be displayed to the user void
onUserSessionEnded
()
Called by the Slang platform to indicate that a user session has ended, either successfully or due to an error. void
onUserSessionStarted
()
Called by the Slang platform soon after the user requests to start a conversation void
onUserTextAvailable
(String text, Locale locale)
Called by the Slang platform when speech from the user had been converted into text.
Last updated