UnbluDefaultExternalLinkHandler

public class UnbluDefaultExternalLinkHandler : UnbluExternalLinkHandler

Provides a default basic implementation of the UnbluExternalLinkHandler. Use this class when assigning an external link handler to the UnbluClientConfiguration.

  • List of link patterns that may be opened in the system browser.

    Those are typical links from the chat which are clicked by the user. The following patterns are added per default, but can be overridden.

    • ^\Qhttps://\E.*
    • ^\Qmailto://\E.*
    • ^\Qtel:\E.*

    if a link does not match one of those patterns, clicking on it, will not do anything with it.

    Declaration

    Swift

    public var externalLinkPatternWhitelist: [NSRegularExpression]
  • Creates an instance

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public func decidePolicy(for url: URL) -> UnbluExternalLinkHandlingPolicy