SlangBuiltinUI
Modifier and Type Method and Description void
hide
()
Hides the Slang UI void
hideSlangBanner
()
Hides the Slang banner from the UI. void
setBackgroundColor
(int color)
Sets the background color of the surface that displays the conversation between the user and Slang void
setImageResource
(int id)
Sets the image on the Slang UI component that receives user clicks to initiate a conversation with Slang void
setIsDraggable
(boolean isDraggable)
Sets if the Slang UI is draggable or not void
setPosition
(float x, float y, float offsetX, float offsetY)
Sets the absolute position of the Slang UI. void
setPosition
(
SlangBuiltinUI.SlangUIPosition
position)
Sets the relative position of the Slang UI. void
setPosition
(
SlangBuiltinUI.SlangUIPosition
position, int offsetX, int offsetY)
Sets the relative position of the Slang UI with offsets from the screen boundaries. void
setSecondaryImageResource
(int id)
Sets the image on the Slang UI component that's displayed when Slang is listening to the user and processing user utterances void
setTextColor
(int color)
Sets the color of the text displayed by Slang void
setTypeface
(Typeface tf)
Sets the typeface for the text displayed by Slang void
show
()
Shows the Slang UI
Last updated