Home | History | Annotate | Download | only in api
      1 package androidx.emoji.text {
      2 
      3   public class EmojiCompat {
      4     method public static androidx.emoji.text.EmojiCompat get();
      5     method public java.lang.String getAssetSignature();
      6     method public int getLoadState();
      7     method public static boolean handleDeleteSurroundingText(android.view.inputmethod.InputConnection, android.text.Editable, int, int, boolean);
      8     method public static boolean handleOnKeyDown(android.text.Editable, int, android.view.KeyEvent);
      9     method public boolean hasEmojiGlyph(java.lang.CharSequence);
     10     method public boolean hasEmojiGlyph(java.lang.CharSequence, int);
     11     method public static androidx.emoji.text.EmojiCompat init(androidx.emoji.text.EmojiCompat.Config);
     12     method public void load();
     13     method public java.lang.CharSequence process(java.lang.CharSequence);
     14     method public java.lang.CharSequence process(java.lang.CharSequence, int, int);
     15     method public java.lang.CharSequence process(java.lang.CharSequence, int, int, int);
     16     method public java.lang.CharSequence process(java.lang.CharSequence, int, int, int, int);
     17     method public void registerInitCallback(androidx.emoji.text.EmojiCompat.InitCallback);
     18     method public void unregisterInitCallback(androidx.emoji.text.EmojiCompat.InitCallback);
     19     field public static final java.lang.String EDITOR_INFO_METAVERSION_KEY = "android.support.text.emoji.emojiCompat_metadataVersion";
     20     field public static final java.lang.String EDITOR_INFO_REPLACE_ALL_KEY = "android.support.text.emoji.emojiCompat_replaceAll";
     21     field public static final int LOAD_STATE_DEFAULT = 3; // 0x3
     22     field public static final int LOAD_STATE_FAILED = 2; // 0x2
     23     field public static final int LOAD_STATE_LOADING = 0; // 0x0
     24     field public static final int LOAD_STATE_SUCCEEDED = 1; // 0x1
     25     field public static final int LOAD_STRATEGY_DEFAULT = 0; // 0x0
     26     field public static final int LOAD_STRATEGY_MANUAL = 1; // 0x1
     27     field public static final int REPLACE_STRATEGY_ALL = 1; // 0x1
     28     field public static final int REPLACE_STRATEGY_DEFAULT = 0; // 0x0
     29     field public static final int REPLACE_STRATEGY_NON_EXISTENT = 2; // 0x2
     30   }
     31 
     32   public static abstract class EmojiCompat.Config {
     33     ctor protected EmojiCompat.Config(androidx.emoji.text.EmojiCompat.MetadataRepoLoader);
     34     method protected final androidx.emoji.text.EmojiCompat.MetadataRepoLoader getMetadataRepoLoader();
     35     method public androidx.emoji.text.EmojiCompat.Config registerInitCallback(androidx.emoji.text.EmojiCompat.InitCallback);
     36     method public androidx.emoji.text.EmojiCompat.Config setEmojiSpanIndicatorColor(int);
     37     method public androidx.emoji.text.EmojiCompat.Config setEmojiSpanIndicatorEnabled(boolean);
     38     method public androidx.emoji.text.EmojiCompat.Config setMetadataLoadStrategy(int);
     39     method public androidx.emoji.text.EmojiCompat.Config setReplaceAll(boolean);
     40     method public androidx.emoji.text.EmojiCompat.Config setUseEmojiAsDefaultStyle(boolean);
     41     method public androidx.emoji.text.EmojiCompat.Config setUseEmojiAsDefaultStyle(boolean, java.util.List<java.lang.Integer>);
     42     method public androidx.emoji.text.EmojiCompat.Config unregisterInitCallback(androidx.emoji.text.EmojiCompat.InitCallback);
     43   }
     44 
     45   public static abstract class EmojiCompat.InitCallback {
     46     ctor public EmojiCompat.InitCallback();
     47     method public void onFailed(java.lang.Throwable);
     48     method public void onInitialized();
     49   }
     50 
     51   public static abstract interface EmojiCompat.MetadataRepoLoader {
     52     method public abstract void load(androidx.emoji.text.EmojiCompat.MetadataRepoLoaderCallback);
     53   }
     54 
     55   public static abstract class EmojiCompat.MetadataRepoLoaderCallback {
     56     ctor public EmojiCompat.MetadataRepoLoaderCallback();
     57     method public abstract void onFailed(java.lang.Throwable);
     58     method public abstract void onLoaded(androidx.emoji.text.MetadataRepo);
     59   }
     60 
     61   public abstract class EmojiSpan extends android.text.style.ReplacementSpan {
     62     method public int getSize(android.graphics.Paint, java.lang.CharSequence, int, int, android.graphics.Paint.FontMetricsInt);
     63   }
     64 
     65   public class FontRequestEmojiCompatConfig extends androidx.emoji.text.EmojiCompat.Config {
     66     ctor public FontRequestEmojiCompatConfig(android.content.Context, androidx.core.provider.FontRequest);
     67     method public androidx.emoji.text.FontRequestEmojiCompatConfig setHandler(android.os.Handler);
     68     method public androidx.emoji.text.FontRequestEmojiCompatConfig setRetryPolicy(androidx.emoji.text.FontRequestEmojiCompatConfig.RetryPolicy);
     69   }
     70 
     71   public static class FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy extends androidx.emoji.text.FontRequestEmojiCompatConfig.RetryPolicy {
     72     ctor public FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy(long);
     73     method public long getRetryDelay();
     74   }
     75 
     76   public static abstract class FontRequestEmojiCompatConfig.RetryPolicy {
     77     ctor public FontRequestEmojiCompatConfig.RetryPolicy();
     78     method public abstract long getRetryDelay();
     79   }
     80 
     81   public final class MetadataRepo {
     82     method public static androidx.emoji.text.MetadataRepo create(android.graphics.Typeface, java.io.InputStream) throws java.io.IOException;
     83     method public static androidx.emoji.text.MetadataRepo create(android.graphics.Typeface, java.nio.ByteBuffer) throws java.io.IOException;
     84     method public static androidx.emoji.text.MetadataRepo create(android.content.res.AssetManager, java.lang.String) throws java.io.IOException;
     85   }
     86 
     87 }
     88 
     89 package androidx.emoji.widget {
     90 
     91   public class EmojiButton extends android.widget.Button {
     92     ctor public EmojiButton(android.content.Context);
     93     ctor public EmojiButton(android.content.Context, android.util.AttributeSet);
     94     ctor public EmojiButton(android.content.Context, android.util.AttributeSet, int);
     95     ctor public EmojiButton(android.content.Context, android.util.AttributeSet, int, int);
     96   }
     97 
     98   public class EmojiEditText extends android.widget.EditText {
     99     ctor public EmojiEditText(android.content.Context);
    100     ctor public EmojiEditText(android.content.Context, android.util.AttributeSet);
    101     ctor public EmojiEditText(android.content.Context, android.util.AttributeSet, int);
    102     ctor public EmojiEditText(android.content.Context, android.util.AttributeSet, int, int);
    103     method public int getMaxEmojiCount();
    104     method public void setMaxEmojiCount(int);
    105   }
    106 
    107   public final class EmojiEditTextHelper {
    108     ctor public EmojiEditTextHelper(android.widget.EditText);
    109     method public android.text.method.KeyListener getKeyListener(android.text.method.KeyListener);
    110     method public int getMaxEmojiCount();
    111     method public android.view.inputmethod.InputConnection onCreateInputConnection(android.view.inputmethod.InputConnection, android.view.inputmethod.EditorInfo);
    112     method public void setMaxEmojiCount(int);
    113   }
    114 
    115   public class EmojiExtractTextLayout extends android.widget.LinearLayout {
    116     ctor public EmojiExtractTextLayout(android.content.Context);
    117     ctor public EmojiExtractTextLayout(android.content.Context, android.util.AttributeSet);
    118     ctor public EmojiExtractTextLayout(android.content.Context, android.util.AttributeSet, int);
    119     ctor public EmojiExtractTextLayout(android.content.Context, android.util.AttributeSet, int, int);
    120     method public int getEmojiReplaceStrategy();
    121     method public void onUpdateExtractingViews(android.inputmethodservice.InputMethodService, android.view.inputmethod.EditorInfo);
    122     method public void setEmojiReplaceStrategy(int);
    123   }
    124 
    125   public class EmojiTextView extends android.widget.TextView {
    126     ctor public EmojiTextView(android.content.Context);
    127     ctor public EmojiTextView(android.content.Context, android.util.AttributeSet);
    128     ctor public EmojiTextView(android.content.Context, android.util.AttributeSet, int);
    129     ctor public EmojiTextView(android.content.Context, android.util.AttributeSet, int, int);
    130   }
    131 
    132   public final class EmojiTextViewHelper {
    133     ctor public EmojiTextViewHelper(android.widget.TextView);
    134     method public android.text.InputFilter[] getFilters(android.text.InputFilter[]);
    135     method public void setAllCaps(boolean);
    136     method public void updateTransformationMethod();
    137     method public android.text.method.TransformationMethod wrapTransformationMethod(android.text.method.TransformationMethod);
    138   }
    139 
    140 }
    141 
    142