Share via


PackageInstaller.Session.Abandon Method

Definition

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

[Android.Runtime.Register("abandon", "()V", "GetAbandonHandler")]
public virtual void Abandon ();
[<Android.Runtime.Register("abandon", "()V", "GetAbandonHandler")>]
abstract member Abandon : unit -> unit
override this.Abandon : unit -> unit
Attributes

Remarks

Completely abandon this session, destroying all staged data and rendering it invalid. Abandoned sessions will be reported to SessionCallback listeners as failures. This is equivalent to #abandonSession(int).

If the parent is abandoned, all children will also be abandoned. Any written data would be destroyed and the created Session information will be discarded.

Java documentation for android.content.pm.PackageInstaller.Session.abandon().

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