Table of Contents

Class AppUpdateState

Namespace
VpnHood.AppLib.Abstractions.Updaters
Assembly
VpnHood.AppLib.Abstractions.dll

Represents an update of the app as it stands.

public class AppUpdateState
Inheritance
AppUpdateState
Inherited Members

Properties

AvailableSince

Gets since when the channel has offered the update, in UTC, where it tells, or null: a store's own update has had that long, as Play counts the days it has known it.

public DateTime? AvailableSince { get; init; }

Property Value

DateTime?

DownloadedBytes

Gets the bytes of the update downloaded so far, as the channel tells them while it downloads; 0 where it tells none, as in the stages after.

public long DownloadedBytes { get; init; }

Property Value

long

ErrorMessage

Gets why the last download or install failed, with Failed, or null.

public string? ErrorMessage { get; init; }

Property Value

string

IsInstallPermissionNeeded

Gets a value indicating whether, with Downloaded, the system still has to let the app install apps, which Install asks first, as Android's "Install unknown apps", so the person's next Install installs.

public bool IsInstallPermissionNeeded { get; init; }

Property Value

bool

None

Gets the state of no update.

public static AppUpdateState None { get; }

Property Value

AppUpdateState

Stage

Gets where the update stands.

public required AppUpdateStage Stage { get; init; }

Property Value

AppUpdateStage

TotalBytes

Gets the update's size, in bytes, as the channel tells it while it downloads, or null where it tells none, as before the server has told it and in the stages after.

public long? TotalBytes { get; init; }

Property Value

long?