WebAppInstallRequest.Builder


public static final class WebAppInstallRequest.Builder
extends Object

java.lang.Object
   ↳ android.content.pm.webapp.WebAppInstallRequest.Builder


Builder for creating WebAppInstallRequest instances.

Summary

Public constructors

Builder(CharSequence title, String manifestUrl)

Creates a new Builder with the required PWA manifest URL.

Public methods

WebAppInstallRequest build()

Builds the WebAppInstallRequest object.

Inherited methods

Public constructors

Builder

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

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
public WebAppInstallRequest build ()

Builds the WebAppInstallRequest object.

Returns
WebAppInstallRequest This value cannot be null.