WebAppManager.Install Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests the installation of a Web App.
[Android.Runtime.Register("install", "(Landroid/content/pm/webapp/WebAppInstallRequest;Ljava/util/concurrent/Executor;Ljava/util/function/ObjIntConsumer;)V", "", ApiSince=37)]
public void Install(Android.Content.PM.Webapp.WebAppInstallRequest request, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IObjIntConsumer callback);
[<Android.Runtime.Register("install", "(Landroid/content/pm/webapp/WebAppInstallRequest;Ljava/util/concurrent/Executor;Ljava/util/function/ObjIntConsumer;)V", "", ApiSince=37)>]
member this.Install : Android.Content.PM.Webapp.WebAppInstallRequest * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IObjIntConsumer -> unit
Parameters
- request
- WebAppInstallRequest
The WebAppInstallRequest containing the app details (such as title and
manifest URL).
- executor
- IExecutor
The Executor on which the callback will be invoked.
- callback
- IObjIntConsumer
The callback to receive the installation result. The String is the
package name of the installed web app. The int value is one of the result codes defined
in WebAppInstallRequest. The String will be null if the result
code is not WebAppInstallRequest#RESULT_SUCCESS.
- Attributes
Remarks
Requests the installation of a Web App.
This operation is asynchronous. The request is processed by the system in the background, and the result is delivered via the provided callback.
Android reference for android.content.pm.webapp.WebAppManager.install.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.