Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.emoji:emoji:1.0.0-rc01

EmojiSpan

public abstract class EmojiSpan
extends ReplacementSpan

java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.MetricAffectingSpan
       ↳ android.text.style.ReplacementSpan
         ↳ androidx.emoji.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 methods

int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)

Inherited methods

Public methods

getSize

public int getSize (Paint paint, 
                CharSequence text, 
                int start, 
                int end, 
                Paint.FontMetricsInt fm)

Parameters
paint Paint

text CharSequence

start int

end int

fm Paint.FontMetricsInt

Returns
int