public interface

EmojiCompat.SpanFactory

 androidx.emoji2.text.EmojiCompat.SpanFactory

Subclasses:

EmojiCompat.DefaultSpanFactory

Overview

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

Methods
public EmojiSpancreateSpan(TypefaceEmojiRasterizer rasterizer)

Create EmojiSpan instance.

Methods

public EmojiSpan createSpan(TypefaceEmojiRasterizer rasterizer)

Create EmojiSpan instance.

Parameters:

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

Returns:

EmojiSpan instance that can use TypefaceEmojiRasterizer to draw emoji.