Register now for Android Dev Summit 2019!

EmojiButton

open class EmojiButton : Button
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.Button
   ↳ androidx.emoji.widget.EmojiButton

Button widget enhanced with emoji capability by using EmojiTextViewHelper. When used on devices running API 18 or below, this widget acts as a regular Button.

Summary

Public constructors

<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods

open Unit
setAllCaps(allCaps: Boolean)

open Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

open Unit

Public constructors

<init>

EmojiButton(context: Context!)

<init>

EmojiButton(context: Context!, attrs: AttributeSet!)

<init>

EmojiButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>

EmojiButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods

setAllCaps

open fun setAllCaps(allCaps: Boolean): Unit

setCustomSelectionActionModeCallback

open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

setFilters

open fun setFilters(filters: Array<InputFilter!>!): Unit