URL Display Mode for Android

The URL Display Mode in UIConfiguration determines how a link opens when clicked by a user. You can set the SDK to open links in the default browser or in a browser within the app.

This article applies to the following implementations:

UI SDKCore SDK

To open links in the default browser, set urlDisplayMode to ExternalBrowser. To open links in a browser within the app, set urlDisplayMode to InlineBrowser.

Set the URL display mode
1UrlDisplayMode.kt
2
3enum class UrlDisplayMode {
4    ExternalBrowser,
5    InlineBrowser
6}
Set the preferred way of opening a link
1UIConfiguration.kt
2
3// The UIConfiguration flag determines how a URL opens when clicked
4// The default is InlineBrowser
5// For universal links that direct to another app, set it to externalBrowser.
6val urlDisplayMode: UrlDisplayMode = UrlDisplayMode.InlineBrowser,