Added in API level 37

Builder


class Builder
kotlin.Any
   ↳ android.content.pm.webapp.WebAppInstallRequest.Builder

Builder for creating WebAppInstallRequest instances.

Summary

Public constructors
Builder(title: CharSequence, manifestUrl: String)

Creates a new Builder with the required PWA manifest URL.

Public methods
WebAppInstallRequest

Builds the WebAppInstallRequest object.

Public constructors

Builder

Added in API level 37
Builder(
    title: CharSequence,
    manifestUrl: String)

Creates a new Builder with the required PWA manifest URL.

Parameters
title CharSequence: The initial title of the app to display during the installation process.

Note: The final app name may differ as it is prioritized from the content of the web manifest.
This value cannot be null.

manifestUrl String: The URL of the PWA manifest.
This value cannot be null.

Public methods

build

Added in API level 37
fun build(): WebAppInstallRequest

Builds the WebAppInstallRequest object.

Return
WebAppInstallRequest This value cannot be null.