android-components / mozilla.components.feature.pwa.ext

Package mozilla.components.feature.pwa.ext


Name Summary
trustedOrigins val CustomTabState.trustedOrigins: List<Nothing>
Returns a list of trusted (or pending) origins.


Name Summary
applyOrientation fun <ERROR CLASS>.applyOrientation(manifest: WebAppManifest?): Unit
Sets the requested orientation of the Activity to the orientation provided by the given WebAppManifest (See WebAppManifest.orientation and WebAppManifest.Orientation.
getTrustedScope fun WebAppManifest.getTrustedScope(): <ERROR CLASS>?
Returns the scope of the manifest as a Uri for use with mozilla.components.feature.pwa.feature.WebAppHideToolbarFeature.
getWebAppManifest fun <ERROR CLASS>.getWebAppManifest(): WebAppManifest?
Parses and returns the WebAppManifest associated with this Bundle, or null if no mapping of the desired type exists.
hasLargeIcons fun WebAppManifest.hasLargeIcons(): Boolean
Checks if the web app manifest can be used to create a shortcut icon.
installableManifest fun Session.installableManifest(): WebAppManifest?
Checks if the current session represents an installable web app. If so, return the web app manifest. Otherwise, return null.
putWebAppManifest fun <ERROR CLASS>.putWebAppManifest(webAppManifest: WebAppManifest?): Unit
Serializes and inserts a WebAppManifest value into the mapping of this Bundle, replacing any existing web app manifest.
toCustomTabConfig fun WebAppManifest.toCustomTabConfig(): CustomTabConfig
Creates a CustomTabConfig that styles a custom tab toolbar to match the manifest theme.
toOrigin fun <ERROR CLASS>.toOrigin(): <ERROR CLASS>?
Returns just the origin of the Uri.
toTaskDescription fun WebAppManifest.toTaskDescription(icon: <ERROR CLASS>?): <ERROR CLASS>
Creates a TaskDescription for the activity manager based on the manifest.