capacitor-native-update
Version:
Native Update Plugin for Capacitor
17 lines (16 loc) • 662 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;
}