PackageInstaller.OpenSession(Int32) Method

Definition

Open an existing session to actively perform work.

[Android.Runtime.Register("openSession", "(I)Landroid/content/pm/PackageInstaller$Session;", "GetOpenSession_IHandler")]
public virtual Android.Content.PM.PackageInstaller.Session OpenSession (int sessionId);
[<Android.Runtime.Register("openSession", "(I)Landroid/content/pm/PackageInstaller$Session;", "GetOpenSession_IHandler")>]
abstract member OpenSession : int -> Android.Content.PM.PackageInstaller.Session
override this.OpenSession : int -> Android.Content.PM.PackageInstaller.Session

Parameters

sessionId
Int32

Returns

Attributes

Exceptions

if parameters were unsatisfiable, such as lack of disk space or unavailable media.

when the caller does not own the session, or the session is invalid.

Remarks

Java documentation for android.content.pm.PackageInstaller.openSession(int).

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