Companion

object Companion

Types

Link copied to clipboard
enum NuguButtonColor : Enum<TemplateView.Companion.NuguButtonColor>

Functions

Link copied to clipboard
fun createView(    templateType: String,     context: Context,     forceToWebView: Boolean = false): TemplateView

Properties

Link copied to clipboard
const val AUDIO_PLAYER_TEMPLATE_1: String
Link copied to clipboard
const val AUDIO_PLAYER_TEMPLATE_2: String
Link copied to clipboard

The basic rule is that SDK show close button on right top of template which is not media Type. The function below determines whether template must show close button or not. If you want to have your own rule. Rewrite the function.

Link copied to clipboard
val MEDIA_TEMPLATE_TYPES: List<String>
Link copied to clipboard
var nuguButtonColor: TemplateView.Companion.NuguButtonColor? = null
Link copied to clipboard
val templateConstructor: HashMap<List<String>, (String, Context) -> TemplateView>

key : TemplateType list value : TemplateView Constructor