StoryEmojiComponent

@objc
public final class StoryEmojiComponent : StoryComponent

This class represents the Emoji component.

  • Type of the component

    Declaration

    Swift

    @objc
    public override var type: StoryComponentType { get }
  • List of the emojis in the component

    Declaration

    Swift

    @objc
    public let emojiCodes: [String]
  • Emoji index that the user selected

    Declaration

    Swift

    @objc
    public let selectedEmojiIndex: Int
  • Custom payload for this emoji if exists

    Declaration

    Swift

    @objc
    public let customPayload: String?
  • StoryEmojiComponent initialization

    Declaration

    Swift

    @objc
    public init(emojiCodes: [String],
                selectedEmojiIndex: Int,
                customPayload: String?)

    Parameters

    emojiCodes

    List of the emojis in the component

    selectedEmojiIndex

    Emoji index that the user selected

    customPayload

    Custom payload for this emoji if exists