EmojiCompat.SpanFactory


interface EmojiCompat.SpanFactory


Factory class that creates the EmojiSpans. By default it creates TypefaceEmojiSpan. Apps should use this only if they want to control the drawing of EmojiSpans for non-standard emoji display (for example, resizing or repositioning emoji).

Summary

Public functions

EmojiSpan

Create EmojiSpan instance.

Public functions

createSpan

Added in 1.3.0
fun createSpan(rasterizer: TypefaceEmojiRasterizer): EmojiSpan

Create EmojiSpan instance.

Parameters
rasterizer: TypefaceEmojiRasterizer

TypefaceEmojiRasterizer instance, which can draw the emoji onto a Canvas.

Returns
EmojiSpan

EmojiSpan instance that can use TypefaceEmojiRasterizer to draw emoji.