EmojiSpan
abstract class EmojiSpan : ReplacementSpan
| kotlin.Any | ||||
| ↳ | android.text.style.CharacterStyle | |||
| ↳ | android.text.style.MetricAffectingSpan | |||
| ↳ | android.text.style.ReplacementSpan | |||
| ↳ | androidx.emoji2.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 functions |
|
|---|---|
Int |
getSize( |
TypefaceEmojiRasterizer |
Get the rasterizer that draws this emoji. |
Inherited functions |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||
|
Public functions
getSize
Added in 1.0.0
fun getSize(
paint: Paint,
text: CharSequence!,
start: Int,
end: Int,
fm: Paint.FontMetricsInt?
): Int
getTypefaceRasterizer
Added in 1.3.0
fun getTypefaceRasterizer(): TypefaceEmojiRasterizer
Get the rasterizer that draws this emoji.
| Returns | |
|---|---|
TypefaceEmojiRasterizer |
rasterizer to draw emoji |