fedilab-Android-App/app/src/common/java/app/fedilab/android/helper/EmojiEditTextInterface.java

35 lines
1.1 KiB
Java
Raw Normal View History

2019-05-18 11:10:30 +02:00
package app.fedilab.android.helper;
2019-01-16 19:32:05 +01:00
2019-06-11 19:38:26 +02:00
import androidx.annotation.DimenRes;
import androidx.annotation.Px;
2019-01-16 19:32:05 +01:00
import com.vanniktech.emoji.emoji.Emoji;
public interface EmojiEditTextInterface {
void backspace();
void input(Emoji emoji);
float getEmojiSize();
2019-09-06 17:55:14 +02:00
/**
* sets the emoji size in pixels and automatically invalidates the text and renders it with the new size
*/
2019-01-16 19:32:05 +01:00
void setEmojiSize(@Px int pixels);
2019-09-06 17:55:14 +02:00
/**
* sets the emoji size in pixels and automatically invalidates the text and renders it with the new size when {@code shouldInvalidate} is true
*/
2019-01-16 19:32:05 +01:00
void setEmojiSize(@Px int pixels, boolean shouldInvalidate);
2019-09-06 17:55:14 +02:00
/**
* sets the emoji size in pixels with the provided resource and automatically invalidates the text and renders it with the new size
*/
2019-01-16 19:32:05 +01:00
void setEmojiSizeRes(@DimenRes int res);
2019-09-06 17:55:14 +02:00
/**
* sets the emoji size in pixels with the provided resource and invalidates the text and renders it with the new size when {@code shouldInvalidate} is true
*/
2019-01-16 19:32:05 +01:00
void setEmojiSizeRes(@DimenRes int res, boolean shouldInvalidate);
}