-
public final class FontRequestEmojiPack extends EmojiPack
An emoji pack that is based on the FontRequestEmojiCompatConfig. It can either be created manually with a FontRequest, with a ProviderInfo or automatically retrieved through collectFontProviders.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringnameprivate Stringdescriptionprivate Uriwebsiteprivate Urilicenseprivate StringdescriptionLongprivate BooleantintableIcon
-
Constructor Summary
Constructors Constructor Description FontRequestEmojiPack(ProviderInfo provider, PackageManager packageManager, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong)Note: This might not work due to missing signatures/certificates FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong, Boolean tintableIcon)FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong)FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, String descriptionLong)FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, String descriptionLong)FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, String descriptionLong)
-
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)DrawablegetIcon(Context context)Returns the icon for this emoji pack. -
-
Constructor Detail
-
FontRequestEmojiPack
FontRequestEmojiPack(ProviderInfo provider, PackageManager packageManager, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong)
Note: This might not work due to missing signatures/certificates
-
FontRequestEmojiPack
FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong, Boolean tintableIcon)
- Parameters:
request- The font request to use as a sourceid- A unique name for the pack.name- The user-facing name of the pack.description- The (short) user-facing description that is visible in the normal emoji pickericon- An icon for the pack, e.g.version- The current version of the pack.website- The URL of the website/repository for the emoji packlicense- 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)descriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
FontRequestEmojiPack
FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, Uri license, String descriptionLong)
- Parameters:
request- The font request to use as a sourceid- A unique name for the pack.name- The user-facing name of the pack.description- The (short) user-facing description that is visible in the normal emoji pickericon- An icon for the pack, e.g.version- The current version of the pack.website- The URL of the website/repository for the emoji packlicense- 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)descriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
FontRequestEmojiPack
FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, Uri website, String descriptionLong)
- Parameters:
request- The font request to use as a sourceid- A unique name for the pack.name- The user-facing name of the pack.description- The (short) user-facing description that is visible in the normal emoji pickericon- An icon for the pack, e.g.version- The current version of the pack.website- The URL of the website/repository for the emoji packdescriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
FontRequestEmojiPack
FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, Version version, String descriptionLong)
- Parameters:
request- The font request to use as a sourceid- A unique name for the pack.name- The user-facing name of the pack.description- The (short) user-facing description that is visible in the normal emoji pickericon- An icon for the pack, e.g.version- The current version of the pack.descriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
FontRequestEmojiPack
FontRequestEmojiPack(FontRequest request, String id, String name, String description, Drawable icon, String descriptionLong)
- Parameters:
request- The font request to use as a sourceid- A unique name for the pack.name- The user-facing name of the pack.description- The (short) user-facing description that is visible in the normal emoji pickericon- An icon for the pack, e.g.descriptionLong- A longer description that is shown when the user expands the item for the emoji pack.
-
-
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)
-
getIcon
Drawable getIcon(Context context)
Returns the icon for this emoji pack. Note: This is done as a function, because at the time the pack object is created, the Context.getTheme might not be initialized yet, so a pre-set icon might be wrongly themed. However, if the icon is theme-independent, it may be stored permanently
-
-
-
-