StoryEmojiComponent

@objc(StoryEmojiComponent)
public final class StoryEmojiComponent : StoryComponent

This class represents the Emoji component.

  • 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
  • StoryEmojiComponent initialization

    Declaration

    Swift

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

    Parameters

    id

    Id of the interactive component

    emojiCodes

    List of the emojis in the component

    selectedEmojiIndex

    Emoji index that the user selected

    customPayload

    Custom payload for this emoji if exists