EmojiCompat.SpanFactory


public 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 methods

abstract @NonNull EmojiSpan

Create EmojiSpan instance.

Public methods

createSpan

Added in 1.3.0
abstract @NonNull EmojiSpan createSpan(@NonNull TypefaceEmojiRasterizer rasterizer)

Create EmojiSpan instance.

Parameters
@NonNull TypefaceEmojiRasterizer rasterizer

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

Returns
@NonNull EmojiSpan

EmojiSpan instance that can use TypefaceEmojiRasterizer to draw emoji.