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 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
-
Creates a
MessageRichLink.Declaration
Swift
public init(title: String, url: URL, fileName: String, fileUrl: URL, mimeType: String)Parameters
titleThe title of the rich link as shown in the conversation.
urlThe destination URL the user navigates to on tap.
fileNameFilename of the preview image (256 KiB cap).
fileUrlURL of the preview image (256 KiB cap).
mimeTypeMIME type of the preview image (e.g.
image/png).
View on GitHub