Share via


PackageInstaller.SessionParams.SetSize(Int64) Method

Definition

Optionally indicate the total size (in bytes) of all APKs that will be delivered in this session.

[Android.Runtime.Register("setSize", "(J)V", "GetSetSize_JHandler")]
public virtual void SetSize (long sizeBytes);
[<Android.Runtime.Register("setSize", "(J)V", "GetSetSize_JHandler")>]
abstract member SetSize : int64 -> unit
override this.SetSize : int64 -> unit

Parameters

sizeBytes
Int64
Attributes

Remarks

Optionally indicate the total size (in bytes) of all APKs that will be delivered in this session. The system may use this to ensure enough disk space exists before proceeding, or to estimate container size for installations living on external storage.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setSize(long).

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