InAppMessageMediaInfo

public struct InAppMessageMediaInfo : Sendable, Codable, Equatable

Media info

  • Media type

    See more

    Declaration

    Swift

    public enum MediaType : String, Sendable, Codable
  • url

    The media’s URL

    Declaration

    Swift

    public var url: String
  • The media’s type

    Declaration

    Swift

    public var type: MediaType
  • Content description

    Declaration

    Swift

    public var description: String?
  • In-app message media model

    Declaration

    Swift

    public init(
        url: String,
        type: MediaType,
        description: String? = nil
    )

    Parameters

    url

    URL from which to fetch the media

    type

    Media type

    description

    Content description for accessibility purposes