EmojiSpan


@RequiresApi(value = 19)
abstract class EmojiSpan : ReplacementSpan


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 functions

Int
getSize(
    paint: Paint,
    text: CharSequence!,
    start: Int,
    end: Int,
    fm: Paint.FontMetricsInt!
)

Inherited functions

From android.text.style.CharacterStyle
From android.text.style.MetricAffectingSpan
From android.text.style.ReplacementSpan
abstract Unit
draw(
    p: Canvas!,
    p1: CharSequence!,
    p2: Int,
    p3: Int,
    p4: Float,
    p5: Int,
    p6: Int,
    p7: Int,
    p8: Paint!
)
CharSequence!
Unit
setContentDescription(contentDescription: CharSequence!)
Unit
Unit

Public functions

getSize

Added in 1.0.0
fun getSize(
    paint: Paint,
    text: CharSequence!,
    start: Int,
    end: Int,
    fm: Paint.FontMetricsInt!
): Int