@capgo/capacitor-updater
Version:
Live update for capacitor apps
35 lines (34 loc) • 2.13 kB
TypeScript
import { WebPlugin } from '@capacitor/core';
import type { AppReadyResult, AutoUpdateEnabled, BundleId, BundleInfo, BundleListResult, CapacitorUpdaterPlugin, ChannelRes, ChannelUrl, CurrentBundleResult, DelayCondition, DeviceId, DownloadOptions, GetChannelRes, LatestVersion, ListChannelsResult, MultiDelayConditions, PluginVersion, ResetOptions, SetChannelOptions, SetCustomIdOptions, StatsUrl, UnsetChannelOptions, UpdateUrl, BuiltinVersion, AutoUpdateAvailable, SetShakeMenuOptions, ShakeMenuEnabled } from './definitions';
export declare class CapacitorUpdaterWeb extends WebPlugin implements CapacitorUpdaterPlugin {
setStatsUrl(options: StatsUrl): Promise<void>;
setUpdateUrl(options: UpdateUrl): Promise<void>;
setChannelUrl(options: ChannelUrl): Promise<void>;
download(options: DownloadOptions): Promise<BundleInfo>;
next(options: BundleId): Promise<BundleInfo>;
isAutoUpdateEnabled(): Promise<AutoUpdateEnabled>;
set(options: BundleId): Promise<void>;
getDeviceId(): Promise<DeviceId>;
getBuiltinVersion(): Promise<BuiltinVersion>;
getPluginVersion(): Promise<PluginVersion>;
delete(options: BundleId): Promise<void>;
list(): Promise<BundleListResult>;
reset(options?: ResetOptions): Promise<void>;
current(): Promise<CurrentBundleResult>;
reload(): Promise<void>;
getLatest(): Promise<LatestVersion>;
setChannel(options: SetChannelOptions): Promise<ChannelRes>;
unsetChannel(options: UnsetChannelOptions): Promise<void>;
setCustomId(options: SetCustomIdOptions): Promise<void>;
getChannel(): Promise<GetChannelRes>;
listChannels(): Promise<ListChannelsResult>;
notifyAppReady(): Promise<AppReadyResult>;
setMultiDelay(options: MultiDelayConditions): Promise<void>;
setDelay(option: DelayCondition): Promise<void>;
cancelDelay(): Promise<void>;
isAutoUpdateAvailable(): Promise<AutoUpdateAvailable>;
getCurrentBundle(): Promise<BundleInfo>;
getNextBundle(): Promise<BundleInfo | null>;
setShakeMenu(_options: SetShakeMenuOptions): Promise<void>;
isShakeMenuEnabled(): Promise<ShakeMenuEnabled>;
}