Freigeben über


PackageInstaller.AbandonSession(Int32) Method

Definition

Completely abandon the given session, destroying all staged data and rendering it invalid.

[Android.Runtime.Register("abandonSession", "(I)V", "GetAbandonSession_IHandler")]
public virtual void AbandonSession (int sessionId);
[<Android.Runtime.Register("abandonSession", "(I)V", "GetAbandonSession_IHandler")>]
abstract member AbandonSession : int -> unit
override this.AbandonSession : int -> unit

Parameters

sessionId
Int32
Attributes

Exceptions

when 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 SessionCallback listeners as failures. This is equivalent to opening the session and calling Session#abandon().

Java documentation for android.content.pm.PackageInstaller.abandonSession(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