@tauri-apps/plugin-updater
Resource
new Update(metadata): Update| Parameter | Type |
|---|---|
metadata | UpdateMetadata |
Resource.constructor
Source: undefined
| Property | Type | Description | Defined in |
|---|---|---|---|
available | boolean | Deprecated This is always true, check if the return value is null instead when using check | Source: undefined |
body? | string | - | Source: undefined |
currentVersion | string | - | Source: undefined |
date? | string | - | Source: undefined |
rawJson | Record<string, unknown> | - | Source: undefined |
version | string | - | Source: undefined |
get rid(): numbernumber
Resource.rid
Source: undefined
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.
Promise<void>
Resource.close
Source: undefined
download(onEvent?, options?): Promise<void>Download the updater package
| Parameter | Type |
|---|---|
onEvent? | (progress) => void |
options? | DownloadOptions |
Promise<void>
Source: undefined
downloadAndInstall(onEvent?, options?): Promise<void>Downloads the updater package and installs it
| Parameter | Type |
|---|---|
onEvent? | (progress) => void |
options? | DownloadOptions |
Promise<void>
Source: undefined
install(): Promise<void>Install downloaded updater package
Promise<void>
Source: undefined
Options used when checking for updates
Options used when downloading an update
| Property | Type | Description | Defined in |
|---|---|---|---|
headers? | HeadersInit | Request headers | Source: undefined |
timeout? | number | Timeout in milliseconds | Source: undefined |
type DownloadEvent: object | object | object;Updater download event
Source: undefined
function check(options?): Promise<Update | null>Check for updates, resolves to null if no updates are available
| Parameter | Type |
|---|---|
options? | CheckOptions |
Source: undefined
Tauri v2.9 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站