native-update
Version:
Foundation package for building a comprehensive update system for Capacitor apps. Provides architecture and interfaces but requires backend implementation.
18 lines (17 loc) • 691 B
TypeScript
import type { BackgroundUpdateConfig, BackgroundUpdateStatus, BackgroundCheckResult } from '../definitions';
export declare class BackgroundScheduler {
private config;
private status;
configure(config: BackgroundUpdateConfig): void;
getStatus(): BackgroundUpdateStatus;
performCheck(): Promise<BackgroundCheckResult>;
private checkForUpdates;
private checkAppUpdate;
private checkLiveUpdate;
private sendNotification;
protected calculateNextCheckTime(): number;
protected shouldRespectBatteryOptimization(): boolean;
protected isNetworkConditionMet(): boolean;
protected isBatteryLevelSufficient(): boolean;
private compareVersions;
}