TemplateHandler

interface TemplateHandler

Basically Template renders figures to inform. And control logic exists on client side. Both side could notify there updated state and directly request specific action to other side. This class is interface for these things to be done.

Types

Link copied to clipboard
interface ClientListener
Link copied to clipboard
open class TemplateHandlerFactory
Link copied to clipboard
data class TemplateInfo(val templateId: String, val templateType: String)

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun getNuguClient(): NuguAndroidClient?
Link copied to clipboard
open fun onChipSelected(text: String)
Link copied to clipboard
open fun onCloseAllClicked()
Link copied to clipboard
open fun onCloseClicked()
Link copied to clipboard
open fun onCloseWithParents()
Link copied to clipboard
open fun onContextChanged(context: String)
Link copied to clipboard
open fun onControlResult(action: String, result: String)
Link copied to clipboard
open fun onElementSelected(tokenId: String, postback: String? = null)
Link copied to clipboard
open fun onNuguButtonSelected()
Link copied to clipboard
open fun onPlayerCommand(command: PlayerCommand, param: String = "")
Link copied to clipboard
open fun onTemplateTouched()
Link copied to clipboard
open fun playTTS(text: String)
Link copied to clipboard
open fun setClientListener(listener: TemplateHandler.ClientListener?)
Link copied to clipboard
open fun showActivity(className: String)
Link copied to clipboard
open fun showToast(text: String)

Properties

Link copied to clipboard
abstract val templateInfo: TemplateHandler.TemplateInfo

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard