MessageLabelDelegate

public protocol MessageLabelDelegate: AnyObject

A protocol used to handle tap events on detected text.

  • didSelectAddress(_:) Default implementation

    Triggered when a tap occurs on a detected address.

    Default Implementation

    Declaration

    Swift

    func didSelectAddress(_ addressComponents: [String: String])

    Parameters

    addressComponents

    The components of the selected address.

  • didSelectDate(_:) Default implementation

    Triggered when a tap occurs on a detected date.

    Default Implementation

    Declaration

    Swift

    func didSelectDate(_ date: Date)

    Parameters

    date

    The selected date.

  • didSelectPhoneNumber(_:) Default implementation

    Triggered when a tap occurs on a detected phone number.

    Default Implementation

    Declaration

    Swift

    func didSelectPhoneNumber(_ phoneNumber: String)

    Parameters

    phoneNumber

    The selected phone number.

  • didSelectURL(_:) Default implementation

    Triggered when a tap occurs on a detected URL.

    Default Implementation

    Declaration

    Swift

    func didSelectURL(_ url: URL)

    Parameters

    url

    The selected URL.

  • didSelectTransitInformation(_:) Default implementation

    Triggered when a tap occurs on detected transit information.

    Default Implementation

    Declaration

    Swift

    func didSelectTransitInformation(_ transitInformation: [String: String])

    Parameters

    transitInformation

    The selected transit information.