Table of Contents

Class AppUpdaterOptions

Namespace
VpnHood.AppLib.App.Services.Updaters
Assembly
VpnHood.AppLib.App.dll

Provides how the app looks for its updates (UpdaterOptions).

public class AppUpdaterOptions
Inheritance
AppUpdaterOptions
Inherited Members

Properties

CheckInterval

Gets how long the app waits after a recorded check of this version before it checks again by itself; a check that was not recorded, as one the feed did not answer, is tried again at the next chance. The default is a day.

public TimeSpan CheckInterval { get; init; }

Property Value

TimeSpan

PostponePeriod

Gets how long the app prompts no more after the person chose Later, or after the store's screen showed. The default is seven days.

public TimeSpan PostponePeriod { get; init; }

Property Value

TimeSpan

PromptDelay

Gets how long a newer release is left to the updater's own automatic update before the app prompts: from the date the store gives for the update, or else its first offer the app saw, before it opens the store's screen; from the release's date before a desktop's notice. The default is three days.

public TimeSpan PromptDelay { get; init; }

Property Value

TimeSpan

UpdateInfoUrl

Gets the address of the update feed, the JSON of the newest release, or null for none.

public Uri? UpdateInfoUrl { get; init; }

Property Value

Uri

UpdaterOfferPeriod

Gets how long the updater's last offer of an update keeps the feed's notice away. The default is seven days.

public TimeSpan UpdaterOfferPeriod { get; init; }

Property Value

TimeSpan

Remarks

A store out of reach answers that it has no update, as Google Play does with no connection to Google, so only this long without its offer makes the feed's notice the way. On Google Play that notice leads to a package from the website, which is the worst case only.

UpdaterProvider

Gets the updater of the app's channel, such as a store's, or null for the feed alone.

public IAppUpdaterProvider? UpdaterProvider { get; init; }

Property Value

IAppUpdaterProvider