PackageInstaller.Session.SetStagingProgress(Single) Method

Definition

Set current progress of staging this session.

[Android.Runtime.Register("setStagingProgress", "(F)V", "GetSetStagingProgress_FHandler")]
public virtual void SetStagingProgress (float progress);
[<Android.Runtime.Register("setStagingProgress", "(F)V", "GetSetStagingProgress_FHandler")>]
abstract member SetStagingProgress : single -> unit
override this.SetStagingProgress : single -> unit

Parameters

progress
Single
Attributes

Remarks

Set current progress of staging this session. Valid values are anywhere between 0 and 1.

Note that this progress may not directly correspond to the value reported by SessionCallback#onProgressChanged(int, float), as the system may carve out a portion of the overall progress to represent its own internal installation work.

Java documentation for android.content.pm.PackageInstaller.Session.setStagingProgress(float).

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.

Applies to