EmojiSpan
abstract class EmojiSpan : ReplacementSpan
kotlin.Any | ||||
↳ | android.text.style.CharacterStyle | |||
↳ | android.text.style.MetricAffectingSpan | |||
↳ | android.text.style.ReplacementSpan | |||
↳ | androidx.emoji.text.EmojiSpan |
Base span class for the emoji replacement. When an emoji is found and needs to be replaced in a CharSequence, an instance of this class is added to the CharSequence.
Summary
Public methods |
|
---|---|
open Int |
getSize(@NonNull paint: Paint, text: CharSequence!, start: Int, end: Int, fm: FontMetricsInt!) |
Public methods
getSize
open fun getSize(@NonNull paint: Paint, text: CharSequence!, start: Int, end: Int, fm: FontMetricsInt!): Int