Skip to main content

EmojiDataManager

Index

Constructors

constructor

Properties

EMOJIS

EMOJIS: Record<string, CanonicalEmoji> = {}

EMOTICON_TO_HEXCODE

EMOTICON_TO_HEXCODE: Record<string, string> = {}

GROUPS_BY_KEY

GROUPS_BY_KEY: Partial<Record<GroupKey, string>> = {}

SHORTCODE_TO_HEXCODE

SHORTCODE_TO_HEXCODE: Record<string, string> = {}

SKIN_TONES_BY_KEY

SKIN_TONES_BY_KEY: Partial<Record<SkinToneKey, string>> = {}

SUBGROUPS_BY_KEY

SUBGROUPS_BY_KEY: Partial<Record<SubgroupKey, string>> = {}

UNICODE_TO_HEXCODE

UNICODE_TO_HEXCODE: Record<string, string> = {}

data

data: CanonicalEmoji[] = []

flatData

flatData: CanonicalEmoji[] = []

locale

locale: Locale = 'en'

version

version: string = '0.0.0'

Methods

getData

  • Return dataset as a list.

getFlatData

  • Return dataset as a flattened list.

packageEmoji

  • Package the emoji object with additional data, while also extracting and partitioning relevant information.

parseEmojiData

  • Parse and generate emoji datasets.

parseMessageData

  • parseMessageData(data: MessagesDataset): void

staticgetInstance

  • Return or create a singleton instance per locale.