MessageRichLink

public struct MessageRichLink : Equatable, Sendable

It is a URL link with an image preview and a defined title.

The customer is able to click on it to be forwarded to the particular page.

  • Title of the Rich Link in the conversation

    Declaration

    Swift

    public let title: String
  • url

    URL link to the address we are linking to

    Declaration

    Swift

    public let url: URL
  • The image name that will be displayed in the rich link​ (256 KiB)

    Declaration

    Swift

    public let fileName: String
  • The image URL that will be displayed in the rich link​ (256 KiB)

    Declaration

    Swift

    public let fileUrl: URL
  • The image MIME type that will be displayed in the rich link​ (256 KiB)

    Declaration

    Swift

    public let mimeType: String

Init

  • Creates a MessageRichLink.

    Declaration

    Swift

    public init(title: String, url: URL, fileName: String, fileUrl: URL, mimeType: String)

    Parameters

    title

    The title of the rich link as shown in the conversation.

    url

    The destination URL the user navigates to on tap.

    fileName

    Filename of the preview image (256 KiB cap).

    fileUrl

    URL of the preview image (256 KiB cap).

    mimeType

    MIME type of the preview image (e.g. image/png).