class ShortCodes extends AnyRef
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.
- Alphabetic
- By Inheritance
- ShortCodes
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ShortCodes(template: Option[ShortCodes] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
Completely removes the emoji and shortcodes from the mapping.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def emoji(shortCode: String): Option[Emoji]
Returns Some(emoji) if a short code is defined, None otherwise
- def emojis: Set[Emoji]
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.
Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def removeCode(shortCode: String): Unit
Removes a shortcode from the mapping.
Removes a shortcode from the mapping. This does not remove the emoji.
- def removeEmoji(emoji: Emoji): Unit
Removes emoji from the shortcodes mapping.
Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.
- def shortCodes: Set[String]
Returns the set of short codes mapped to emojis.
- def shortCodes(emoji: Emoji): Option[Set[String]]
Returns the short codes for this emoji.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()