-
public abstract class DeletableEmojiPack extends EmojiPack
An emoji pack that can be deleted (somehow)
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringnameprivate Stringdescriptionprivate Uriwebsiteprivate Urilicenseprivate StringdescriptionLongprivate BooleantintableIcon
-
Constructor Summary
Constructors Constructor Description DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license, String descriptionLong, Boolean tintableIcon)DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license, String descriptionLong)DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license)DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website)DeletableEmojiPack(String id, String name, String description, VersionProvider version)
-
Method Summary
Modifier and Type Method Description final StringgetId()final UnitsetId(String id)final StringgetName()final UnitsetName(String name)final StringgetDescription()final UnitsetDescription(String description)final UrigetWebsite()final UnitsetWebsite(Uri website)final UrigetLicense()final UnitsetLicense(Uri license)final StringgetDescriptionLong()final UnitsetDescriptionLong(String descriptionLong)final BooleangetTintableIcon()final UnitsetTintableIcon(Boolean tintableIcon)final UnitcancelDeletion(Context context)Prevents the actual deletion from happening final UnitscheduleDeletion(Context context, Long timeToDelete, Handler handler, EmojiPackList list, Function1<String, Boolean> selectDefaultAllowed, EmojiPreferenceInterface preference)Plans a deletion for some time in the future (until then, it can still be cancelled) final BooleanisGettingDeleted()final UnitaddDeletionListener(EmojiPackDeletionListener listener)final UnitremoveDeletionListener(EmojiPackDeletionListener listener)-
Methods inherited from class de.c1710.filemojicompat_ui.packs.DeletableEmojiPack
addSelectionListener, getIcon, getVersion, removeSelectionListener, select, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DeletableEmojiPack
DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license, String descriptionLong, Boolean tintableIcon)
-
DeletableEmojiPack
DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license, String descriptionLong)
-
DeletableEmojiPack
DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website, Uri license)
-
DeletableEmojiPack
DeletableEmojiPack(String id, String name, String description, VersionProvider version, Uri website)
-
DeletableEmojiPack
DeletableEmojiPack(String id, String name, String description, VersionProvider version)
-
-
Method Detail
-
getDescription
final String getDescription()
-
setDescription
final Unit setDescription(String description)
- Parameters:
description- The (short) user-facing description that is visible in the normal emoji picker
-
getWebsite
final Uri getWebsite()
-
setWebsite
final Unit setWebsite(Uri website)
- Parameters:
website- The URL of the website/repository for the emoji pack
-
getLicense
final Uri getLicense()
-
setLicense
final Unit setLicense(Uri license)
- Parameters:
license- The URL of the license for the emoji pack (This might be auto-downloaded in the future, so it should point to a rather small/plaintext file, if possible)
-
getDescriptionLong
final String getDescriptionLong()
-
setDescriptionLong
final Unit setDescriptionLong(String descriptionLong)
- Parameters:
descriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
getTintableIcon
final Boolean getTintableIcon()
-
setTintableIcon
final Unit setTintableIcon(Boolean tintableIcon)
- Parameters:
tintableIcon- Whether the icon should get a tint (if specified by the theme)
-
cancelDeletion
final Unit cancelDeletion(Context context)
Prevents the actual deletion from happening
-
scheduleDeletion
final Unit scheduleDeletion(Context context, Long timeToDelete, Handler handler, EmojiPackList list, Function1<String, Boolean> selectDefaultAllowed, EmojiPreferenceInterface preference)
Plans a deletion for some time in the future (until then, it can still be cancelled)
- Parameters:
timeToDelete- The time in ms to wait with the deletionhandler- The Handler to run the deletion onlist- The list to (depending on the actual type of pack) remove the pack from later on
-
isGettingDeleted
final Boolean isGettingDeleted()
-
addDeletionListener
final Unit addDeletionListener(EmojiPackDeletionListener listener)
-
removeDeletionListener
final Unit removeDeletionListener(EmojiPackDeletionListener listener)
-
-
-
-