Android.Content.PM.PackageInstaller.CreateSession Method
Create a new session using the given parameters, returning a unique ID that represents the session.

Syntax

[Android.Runtime.Register("createSession", "(Landroid/content/pm/PackageInstaller$SessionParams;)I", "GetCreateSession_Landroid_content_pm_PackageInstaller_SessionParams_Handler")]
public virtual int CreateSession (PackageInstaller.SessionParams params)

Parameters

params
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif parameters were unsatisfiable, such as lack of disk space or unavailable media.
Java.Lang.SecurityExceptionwhen installation services are unavailable, such as when called from a restricted user.
Java.Lang.IllegalArgumentExceptionwhen NoType:android/content/pm/PackageInstaller$SessionParams;Href=../../../../reference/android/content/pm/PackageInstaller.SessionParams.html is invalid.

Remarks

Create a new session using the given parameters, returning a unique ID that represents the session. Once created, the session can be opened multiple times across multiple device boots.

The system may automatically destroy sessions that have not been finalized (either committed or abandoned) within a reasonable period of time, typically on the order of a day.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0