VerticalFeedEmojiComponent

@objc(VerticalFeedEmojiComponent)
public final class VerticalFeedEmojiComponent : VerticalFeedItemComponent

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
  • Custom payload for this emoji if exists

    Declaration

    Swift

    @objc
    public let customPayload: String?
  • VerticalFeedEmojiComponent 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