Android.Content.PM.PackageInstaller.AbandonSession Method
Completely abandon the given session, destroying all staged data and rendering it invalid.

Syntax

[Android.Runtime.Register("abandonSession", "(I)V", "GetAbandonSession_IHandler")]
public virtual void AbandonSession (int sessionId)

Parameters

sessionId
Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.SecurityExceptionwhen the caller does not own the session, or the session is invalid.

Remarks

Completely abandon the given session, destroying all staged data and rendering it invalid. Abandoned sessions will be reported to NoType:android/content/pm/PackageInstaller$SessionCallback;Href=../../../../reference/android/content/pm/PackageInstaller.SessionCallback.html listeners as failures. This is equivalent to opening the session and calling NoType:android/content/pm/PackageInstaller$Session;Href=../../../../reference/android/content/pm/PackageInstaller.Session.html#abandon().

[Android Documentation]

Requirements

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