Package 

Class SystemDefaultEmojiPack

    • Method Detail

      • setId

         final Unit setId(String id)
        Parameters:
        id - A unique name for the pack.
      • setName

         final Unit setName(String name)
        Parameters:
        name - The user-facing name of the pack.
      • setDescription

         final Unit setDescription(String description)
        Parameters:
        description - The (short) user-facing description that is visible in the normal emoji picker
      • setWebsite

         final Unit setWebsite(Uri website)
        Parameters:
        website - The URL of the website/repository for the emoji pack
      • 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)
      • setDescriptionLong

         final Unit setDescriptionLong(String descriptionLong)
        Parameters:
        descriptionLong - A longer description that is shown when the user expands the item for the emoji pack.
      • 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