native-update
Version:
Foundation package for building a comprehensive update system for Capacitor apps. Provides architecture and interfaces but requires backend implementation.
20 lines (19 loc) • 679 B
TypeScript
import { PluginConfig } from '../core/config';
import { AppUpdateInfo, AppUpdateOptions, VersionInfo, AppStoreInfo } from './types';
export declare class PlatformAppUpdate {
private config;
private logger;
private platform;
constructor(config: PluginConfig);
checkForUpdate(_?: AppUpdateOptions): Promise<AppUpdateInfo>;
getVersionInfo(): Promise<VersionInfo>;
getAppStoreUrl(): Promise<AppStoreInfo>;
openUrl(url: string): Promise<void>;
isUpdateSupported(): boolean;
getUpdateCapabilities(): {
immediateUpdate: boolean;
flexibleUpdate: boolean;
backgroundDownload: boolean;
inAppReview: boolean;
};
}