Skip navigation links
Slang API Reference
A B C F G H I L N O R S T U V W 

S

set(String, Object) - Method in class SlangAppProperties
Adds a new key-value pair to this object
setAPIKey(String) - Method in class SlangBuddyOptions.Builder
Sets the API key of the account, as configured in the Slang Console.
setApplication(Application) - Method in class SlangBuddyOptions.Builder
Sets the Android application.
setAppProperties(SlangAppProperties) - Method in class SlangBuddyOptions.Builder
Sets the app properties for the app.
setAutomaticHelpDisplayThreshold(int) - Method in class SlangBuddyOptions.Builder
Sets the number of failed user utterances after which the Slang platform will automatically display a help message.
setBackgroundColor(int) - Method in interface SlangBuiltinUI
Sets the background color of the surface that displays the conversation between the user and Slang
setBuddyId(String) - Method in class SlangBuddyOptions.Builder
Sets the ID of the buddy, as configured in the Slang Console.
setCompletionStatement(SlangStatement) - Method in class SlangIntent
Sets the completion statement for this intent, thereby overriding the statement configured through the Slang Console.
setCurrentLocale(Locale) - Method in class SlangBuddyContext
 
setDefaultLocale(Locale) - Method in class SlangBuddyOptions.Builder
Sets the default locale in which Slang will be available to the user in the application.
setEnvironment(SlangBuddy.Environment) - Method in class SlangBuddyOptions.Builder
Sets the environment in which the given buddy is expected to operate.
setHideShowOnNetworkChange(boolean) - Method in class SlangBuddyOptions.Builder
Sets the flag to indicate if slang should Hide/Show based on network change
setImageResource(int) - Method in interface SlangBuiltinUI
Sets the image on the Slang UI component that receives user clicks to initiate a conversation with Slang
setIntentAction(SlangIntentAction) - Method in class SlangBuddyOptions.Builder
Sets the SlangIntentAction to be called by the Slang platform whenever it resolves an intent from a user utterance.
setIsDraggable(boolean) - Method in interface SlangBuiltinUI
Sets if the Slang TranslucentTrigger is draggable or not
setListener(SlangBuddy.Listener) - Method in class SlangBuddyOptions.Builder
Sets a listener that listens to state changes in the SlangBuddy
setPosition(float, float, float, float, boolean) - Method in interface SlangBuiltinUI
Sets the absolute position of the Slang UI.
setPosition(SlangBuiltinUI.SlangUIPosition, boolean) - Method in interface SlangBuiltinUI
Sets the relative position of the Slang UI.
setPosition(SlangBuiltinUI.SlangUIPosition, int, int, boolean) - Method in interface SlangBuiltinUI
Sets the relative position of the Slang UI with offsets from the screen boundaries.
setRequestedLocales(Set<Locale>) - Method in class SlangBuddyOptions.Builder
Specifies the set of locales in which Slang will be available to the user in the application.
setSecondaryImageResource(int) - Method in interface SlangBuiltinUI
Sets the image on the Slang UI component that's displayed when Slang is listening to the user and processing user utterances
setStartActivity(Activity) - Method in class SlangBuddyOptions.Builder
Sets the initial activity on which to place the default Slang UI.
setStartStatement(SlangStatement) - Method in class SlangIntent
Sets the start statement for this intent, thereby overriding the statement configured through the Slang Console.
setTextColor(int) - Method in interface SlangBuiltinUI
Sets the color of the text displayed by Slang
setTTSVoiceType(SlangBuddy.TTSVoiceType) - Method in class SlangBuddyOptions.Builder
Sets the TTS voice type
setTypeface(Typeface) - Method in interface SlangBuiltinUI
Sets the typeface for the text displayed by Slang
setUIProvider(SlangUIProvider) - Method in class SlangBuddyOptions.Builder
Sets a custom UI provider.
setUserProperties(SlangUserProperties) - Method in class SlangBuddyOptions.Builder
Sets the user properties for the current user.
setUtteranceAction(SlangUtteranceAction) - Method in class SlangBuddyOptions.Builder
Sets the SlangUtteranceAction to be called by the Slang platform for processing user utterances.
show() - Method in interface SlangBuiltinUI
Deprecated. 
show(Activity) - Method in interface SlangBuiltinUI
Shows the Slang UI on the given activity
SlangAction - Interface in in.slanglabs.platform.action
This is the base interface to be implemented by all actions registered with Slang
SlangAction.Status - Enum in in.slanglabs.platform.action
 
SlangAppProperties - Class in in.slanglabs.platform
A utility class that can be used by the application to help fulfill dynamic statements.
SlangAppProperties() - Constructor for class SlangAppProperties
Creates an empty SlangAppProperties object
SlangAppProperties(Map<String, Object>) - Constructor for class SlangAppProperties
Creates a SlangAppProperties object seeded with the given properties
SlangBuddy - Class in in.slanglabs.platform
This class represents a Slang buddy configured in the Slang Console.
SlangBuddy() - Constructor for class SlangBuddy
 
SlangBuddy.Environment - Enum in in.slanglabs.platform
This enum represents the different environments in which a Slang buddy can operate.
SlangBuddy.InitializationError - Class in in.slanglabs.platform
This error is thrown when the Slang platform fails to initialize a buddy successfully.
SlangBuddy.InitializationError.Type - Enum in in.slanglabs.platform
 
SlangBuddy.InsufficientPrivilegeException - Exception in in.slanglabs.platform
This exception is thrown by the Slang platform when an application attempts to perform actions for which it does not have sufficient privileges.
SlangBuddy.InvalidIntentException - Exception in in.slanglabs.platform
This exception is raised when applications attempt to perform actions on intents that are not valid.
SlangBuddy.InvalidLocaleException - Exception in in.slanglabs.platform
This exception is raised when applications attempt to set a Locale that was not part of the requested locales during initialization.
SlangBuddy.Listener - Interface in in.slanglabs.platform
This interface is expected to be implemented by applications that are interested in listening to the state of the Slang buddy, including if initialization succeeded, or failed and for what reason.
SlangBuddy.LocaleChangeError - Class in in.slanglabs.platform
 
SlangBuddy.TTSVoiceType - Enum in in.slanglabs.platform
 
SlangBuddy.UninitializedUsageException - Exception in in.slanglabs.platform
This exception is raised when applications call SlangBuddy methods before the buddy is initialized successfully.
SlangBuddyContext - Class in in.slanglabs.platform
 
SlangBuddyOptions - Class in in.slanglabs.platform
This class is a utility class that collects all the options that can be passed to a Slang buddy during initialization.
SlangBuddyOptions.Builder - Class in in.slanglabs.platform
A helper class for building SlangBuddyOptions objects, used to initialize a SlangBuddy
SlangBuddyOptions.InvalidOptionException - Exception in in.slanglabs.platform
An exception to indicate that an invalid option has been passed during the creation of a SlangBuddyOptions object.
SlangBuiltinUI - Interface in in.slanglabs.platform.ui
This interface is implemented by the Slang platform and is not to be overridden by applications.
SlangBuiltinUI.SlangUIPosition - Enum in in.slanglabs.platform.ui
This enum specifies the various positions at which the Slang UI can be positioned on the application's screen
SlangEntity - Class in in.slanglabs.platform
A class that represents an instance of a Slang entity.
SlangEntityType - Class in in.slanglabs.platform
A class that represents the type of an entity.
SlangException - Exception in in.slanglabs.platform
A utility class that represents exceptions thrown by the Slang platform
SlangHelpItem - Class in in.slanglabs.platform.ui
A helper class to be used by applications providing their own UI by implementing the SlangUIProvider interface.
SlangIntent - Class in in.slanglabs.platform
This class represents a Slang intent that has been resolved by the Slang platform from a spoken user utterance.
SlangIntent.Status - Enum in in.slanglabs.platform
 
SlangIntentAction - Interface in in.slanglabs.platform.action
This interface is expected to be implemented by applications that are interested in taking action upon intent resolution by the Slang platform.
SlangLocale - Class in in.slanglabs.platform
A helper class that provides utility methods related to locales
SlangLocale() - Constructor for class SlangLocale
 
SlangMessage - Class in in.slanglabs.platform.prompt
A class that represents a simple text message to be used by the Slang platform to show/speak out information to the user.
SlangPrompt - Class in in.slanglabs.platform.prompt
A class that represents a prompting system to used by the Slang platform to prompt for information from the user at relevant points in the intent resolution flow (such as unresolved entities).
SlangSession - Interface in in.slanglabs.platform
A class that contains details of the currently active Slang session
SlangStatement - Class in in.slanglabs.platform.prompt
A class that represents a statement system to be used by the Slang platform to show/speak out information to the user at appropriate points in the intent resolution lifecycle (such as intent completion, unexpected errors, etc).
SlangUIDelegate - Interface in in.slanglabs.platform.ui
An interface that acts as the delegate of the Slang platform for processing requests from a UI implementation.
SlangUIProvider - Interface in in.slanglabs.platform.ui
This is the interface to be implemented by applications that choose to provide their own UI, instead of using Slang's built-in in UI implementation.
SlangUserProperties - Class in in.slanglabs.platform
This class allows the application to provide additional information about the current user to the Slang platform so that this data can be correlated with other Slang usage information via the Slang Console
SlangUserProperties(SlangUserProperties.Gender, int, Map<String, String>) - Constructor for class SlangUserProperties
Constructs a user-properties object with the given gender, age and other metadata
SlangUserProperties(SlangUserProperties.Gender) - Constructor for class SlangUserProperties
Constructs a user-properties object with the given gender
SlangUserProperties(int) - Constructor for class SlangUserProperties
Constructs a user-properties object with the given age
SlangUserProperties(Map<String, String>) - Constructor for class SlangUserProperties
Constructs a user-properties objct with the given metadata
SlangUserProperties.Gender - Enum in in.slanglabs.platform
 
SlangUtteranceAction - Interface in in.slanglabs.platform.action
This interface is expected to be implemented by applications that are interested in being notified whenever user utterances are processed by Slang, or when user utterances cannot be resolved by Slang into a SlangIntent
startConversation(SlangMessage, boolean) - Static method in class SlangBuddy
 
A B C F G H I L N O R S T U V W 
Skip navigation links
Copyright (c) 2017-2019 Slang Labs Private Limited. All rights reserved.