StoryRatingComponent

@objc
public final class StoryRatingComponent : StoryComponent

This class represents the Rating component.

  • Type of the component

    Declaration

    Swift

    @objc
    public override var type: StoryComponentType { get }
  • 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
  • Custom payload for this rating if exists

    Declaration

    Swift

    @objc
    public let customPayload: String?
  • StoryRatingComponent initialization

    Declaration

    Swift

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

    Parameters

    emojiCode

    Emoji code as the thumb emoji

    rating

    Rating value which user rated in the component

    customPayload

    Custom payload for this rating if exists