UnbluDefaultExternalLinkHandler
class UnbluDefaultExternalLinkHandler
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
var externalLinkPatternWhitelist: [NSRegularExpression]
-
Creates an instance
Declaration
Swift
init()
-
Called when a link is tapped in a conversation
Declaration
Swift
func decidePolicy(for url: URL) -> UnbluExternalLinkHandlingPolicy
Return Value
The
UnbluExternalLinkHandlingPolicy
Unblu should use for the tapped link.