@tauri-apps/plugin-updater
Classes
Section titled “Classes”Update
Section titled “Update”Extends
Section titled “Extends”Resource
Constructors
Section titled “Constructors”new Update()
Section titled “new Update()”new Update(metadata): UpdateParameters
Section titled “Parameters”| Parameter | Type |
|---|---|
metadata |
UpdateMetadata |
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Resource.constructor
Source: undefined
Properties
Section titled “Properties”| 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 |
Accessors
Section titled “Accessors”get rid(): numberReturns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Resource.rid
Source: undefined
Methods
Section titled “Methods”close()
Section titled “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
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”Resource.close
Source: undefined
download()
Section titled “download()”download(onEvent?, options?): Promise<void>Download the updater package
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions |
Returns
Section titled “Returns”Promise<void>
Source: undefined
downloadAndInstall()
Section titled “downloadAndInstall()”downloadAndInstall(onEvent?, options?): Promise<void>Downloads the updater package and installs it
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions |
Returns
Section titled “Returns”Promise<void>
Source: undefined
install()
Section titled “install()”install(): Promise<void>Install downloaded updater package
Returns
Section titled “Returns”Promise<void>
Source: undefined
Interfaces
Section titled “Interfaces”CheckOptions
Section titled “CheckOptions”Options used when checking for updates
Properties
Section titled “Properties”DownloadOptions
Section titled “DownloadOptions”Options used when downloading an update
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
headers? |
HeadersInit |
Request headers | Source: undefined |
timeout? |
number |
Timeout in milliseconds | Source: undefined |
Type Aliases
Section titled “Type Aliases”DownloadEvent
Section titled “DownloadEvent”type DownloadEvent: object | object | object;Updater download event
Source: undefined
Functions
Section titled “Functions”check()
Section titled “check()”function check(options?): Promise<Update | null>Check for updates, resolves to null if no updates are available
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
CheckOptions |
Returns
Section titled “Returns”Source: undefined
Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站