VerticalFeedRatingComponent

@objc(VerticalFeedRatingComponent)
public final class VerticalFeedRatingComponent : VerticalFeedItemComponent

This class represents the Rating component.

  • Emoji code as the thumb emoji

    Declaration

    Swift

    @objc
    public let emojiCode: String
  • Rating value which user rated in the component

    Declaration

    Swift

    @objc
    public let rating: Int
  • VerticalFeedRatingComponent initialization

    Declaration

    Swift

    @objc
    public init(id: String,
                emojiCode: String,
                rating: Int,
                customPayload: String?)

    Parameters

    id

    Id of the interactive component

    emojiCode

    Emoji code as the thumb emoji

    rating

    Rating value which user rated in the component

    customPayload

    Custom payload for this rating if exists