UNPKG

capacitor-native-update

Version:
17 lines (16 loc) 662 B
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; }