Reference
API Reference
reload()
export const reload = (): Promise<void>
Reload the webview
syncOne(...)
export const syncOne = async (options: SyncOneOptions): Promise<SyncResult>
Sync One
| Param | Type | 
|---|---|
options | SyncOneOptions | 
Returns: Promise<SyncResult>
syncAll(...)
export const syncAll = (callback: SyncCallback): void
Sync All
| Param | Type | 
|---|---|
callback | SyncCallback) | 
syncSome(...)
export const syncSome(options: SyncSomeOptions, callback: SyncCallback): void
Sync Some
| Param | Type | 
|---|---|
options | SyncSomeOptions | 
callback | SyncCallback) | 
Interfaces
SyncResult
| Prop | Type | 
|---|---|
liveUpdate | LiveUpdate | 
snapshot | Snapshot | null | 
source | 'download' | 'cache' | 
activeApplicationPathChanged | boolean | 
LiveUpdateConfig
| Prop | Type | 
|---|---|
appId | string | 
channel | string | 
autoUpdateMethod | AutoUpdateMethod | 
maxVersions | number | 
key | string | 
LiveUpdateError
| Prop | Type | 
|---|---|
appId | string | undefined | 
failStep | 'CHECK' | 'DOWNLOAD' | 'UNPACK' | 'VERIFY' | 'UPDATE' | 'CANCEL' | 
message | string | 
Snapshot
| Prop | Type | 
|---|---|
id | string | 
buildId | string | 
SyncCallback
| Prop | Type | 
|---|---|
onError | (error: LiveUpdateError) => void | 
onAppComplete | (result: SyncResult) => void | 
onSyncComplete | () => void | 
SyncOneOptions
| Prop | Type | 
|---|---|
appId | string | 
SyncSomeOptions
| Prop | Type | 
|---|---|
appIds | string[] | 
Type Aliases
LiveUpdate
Pick<LiveUpdateConfig, 'appId' | 'channel'>
AutoUpdateMethod
'none' | 'background'