Skip to content
Tauri 中文网

@tauri-apps/plugin-updater

Classes

Update

Extends

  • Resource

Constructors

new Update()
new Update(metadata): Update
Parameters
ParameterType
metadataUpdateMetadata
Returns

Update

Overrides

Resource.constructor

Source: undefined

Properties

PropertyTypeDefined in
availablebooleanSource: undefined
body?stringSource: undefined
currentVersionstringSource: undefined
date?stringSource: undefined
rawJsonRecord<string, unknown>Source: undefined
versionstringSource: undefined

Accessors

rid
Get Signature
get rid(): number
Returns

number

Inherited from

Resource.rid

Source: undefined

Methods

close()
close(): Promise<void>

Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.

Returns

Promise<void>

Overrides

Resource.close

Source: undefined

download()
download(onEvent?, options?): Promise<void>

Download the updater package

Parameters
ParameterType
onEvent?(progress) => void
options?DownloadOptions
Returns

Promise<void>

Source: undefined

downloadAndInstall()
downloadAndInstall(onEvent?, options?): Promise<void>

Downloads the updater package and installs it

Parameters
ParameterType
onEvent?(progress) => void
options?DownloadOptions
Returns

Promise<void>

Source: undefined

install()
install(): Promise<void>

Install downloaded updater package

Returns

Promise<void>

Source: undefined

Interfaces

CheckOptions

Options used when checking for updates

Properties

PropertyTypeDescriptionDefined in
headers?HeadersInitRequest headersSource: undefined
proxy?stringA proxy url to be used when checking and downloading updates.Source: undefined
target?stringTarget identifier for the running application. This is sent to the backend.Source: undefined
timeout?numberTimeout in millisecondsSource: undefined

DownloadOptions

Options used when downloading an update

Properties

PropertyTypeDescriptionDefined in
headers?HeadersInitRequest headersSource: undefined
timeout?numberTimeout in millisecondsSource: undefined

Type Aliases

DownloadEvent

type DownloadEvent: object | object | object;

Updater download event

Source: undefined

Functions

check()

function check(options?): Promise<Update | null>

Check for updates, resolves to null if no updates are available

Parameters

ParameterType
options?CheckOptions

Returns

Promise<Update | null>

Source: undefined


Tauri 中文网 - 粤ICP备13048890号