ShortCodes

class ShortCodes(template: Option[ShortCodes])

An emoji to shortcode mapping. This is a class that should be declared and used as an implicit value, so that shortcode mappings don't have to be global across an application.

An emoji to shortcode mapping. This is a class that should be declared and used as an implicit value, so that shortcode mappings don't have to be global across an application.

"import ShortCodes.Defaults." to import the default shortcode mapping. "import ShortCodes.Implicits." to enrich Emoji and String with shortcode methods.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def clear(): Unit

Completely removes the emoji and shortcodes from the mapping.

Completely removes the emoji and shortcodes from the mapping.

def emoji(shortCode: String): Option[Emoji]

Returns Some(emoji) if a short code is defined, None otherwise

Returns Some(emoji) if a short code is defined, None otherwise

def emojis: Set[Emoji]

Returns the set of emojis that have short codes.

Returns the set of emojis that have short codes.

def entry(emoji: Emoji, shortCode: String): Unit

Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.

Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.

def removeCode(shortCode: String): Unit

Removes a shortcode from the mapping. This does not remove the emoji.

Removes a shortcode from the mapping. This does not remove the emoji.

def removeEmoji(emoji: Emoji): Unit

Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.

Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.

def shortCodes(emoji: Emoji): Option[Set[String]]

Returns the short codes for this emoji.

Returns the short codes for this emoji.

def shortCodes: Set[String]

Returns the set of short codes mapped to emojis.

Returns the set of short codes mapped to emojis.