@tauri-apps/plugin-updater
Classes
Update
Extends
Resource
Constructors
new Update()
new Update(metadata): Update
Parameters
Parameter | Type |
---|---|
metadata | UpdateMetadata |
Returns
Overrides
Resource.constructor
Source: undefined
Properties
Property | Type | Defined in |
---|---|---|
available | boolean | Source: undefined |
body? | string | Source: undefined |
currentVersion | string | Source: undefined |
date? | string | Source: undefined |
rawJson | Record <string , unknown > | Source: undefined |
version | string | Source: 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
Parameter | Type |
---|---|
onEvent ? | (progress ) => void |
options ? | DownloadOptions |
Returns
Promise
<void
>
Source: undefined
downloadAndInstall()
downloadAndInstall(onEvent?, options?): Promise<void>
Downloads the updater package and installs it
Parameters
Parameter | Type |
---|---|
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
DownloadOptions
Options used when downloading an update
Properties
Property | Type | Description | Defined in |
---|---|---|---|
headers? | HeadersInit | Request headers | Source: undefined |
timeout? | number | Timeout in milliseconds | Source: 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
Parameter | Type |
---|---|
options ? | CheckOptions |
Returns
Source: undefined
Tauri 中文网 - 粤ICP备13048890号