android-components / mozilla.components.feature.app.links / AppLinkRedirect

AppLinkRedirect

data class AppLinkRedirect (source)

Data class for the external Intent or fallback URL a given URL encodes for.

Constructors

Name Summary
<init> AppLinkRedirect(appIntent: <ERROR CLASS>?, fallbackUrl: String?, marketplaceIntent: <ERROR CLASS>?)
Data class for the external Intent or fallback URL a given URL encodes for.

Properties

Name Summary
appIntent val appIntent: <ERROR CLASS>?
fallbackUrl val fallbackUrl: String?
marketplaceIntent val marketplaceIntent: <ERROR CLASS>?

Functions

Name Summary
hasExternalApp fun hasExternalApp(): Boolean
If there is a third-party app intent.
hasFallback fun hasFallback(): Boolean
If there is a fallback URL (should the intent fails).
hasMarketplaceIntent fun hasMarketplaceIntent(): Boolean
If there is a marketplace intent (should the external app is not installed).
isInstallable fun isInstallable(): Boolean
Is the app link one that can be installed from a store.
isRedirect fun isRedirect(): Boolean
If the app link is a redirect (to an app or URL).

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.