Version: 0.0.0-canary-20231123-1b19f960.0.1-canary-20231125-d600e440.0.1-canary-20231129-c0ec0230.0.1-canary-20231130-c8a9bf90.0.1-canary-20231130-ede75a70.0.1-canary-20231130-ede75a7-10.0.1-canary-20231205-250b31f0.0.1-canary-20240109-93608d80.0.1-canary-20240222-c729a130.0.1-canary-20240228-7cee6190.0.1-canary-20240305-e60019e0.0.1-canary-20240308-67158750.0.1-canary-20240315-ce710050.0.1-canary-20240318-53194f50.0.1-canary-20240318-af634b10.0.1-canary-20240318-dd8f2450.0.1-canary-20240320-8a10e090.0.1-canary-20240327-a7302d90.0.1-canary-20240328-24ecc5e0.0.1-canary-20240404-e2b87430.0.1-canary-20240405-cdfd9c10.0.1-canary-20240406-a4950c70.0.1-canary-20240411-33a7dc10.0.1-canary-20240411-55a00850.0.1-canary-20240415-0868fc40.0.1-canary-20240415-cca04d80.0.1-canary-20240418-8d745971.0.0-rc.01.0.0-rc.11.0.0-rc.21.0.0-rc.31.0.03.0.04.0.05.0.0-rc.05.0.05.0.16.0.0-rc.06.0.07.0.0-rc.07.0.08.0.08.1.08.2.08.3.08.4.08.5.08.6.09.0.09.1.09.2.09.2.19.2.210.0.010.0.110.0.210.0.310.1.010.1.110.2.010.3.011.0.011.0.111.1.011.1.111.2.011.3.011.4.011.5.011.6.011.7.011.8.011.8.112.0.012.0.112.0.2-canary-20240625-2333e7012.0.2-canary-20240627-1402f4b12.0.2-canary-20240628-1ba815212.0.2-canary-20240719-83ee47b13.0.0-canary-20240814-ce0f7d513.0.0-canary-20240904-69100c113.0.0-canary-20240912-1059f8513.0.0-canary-20240927-ab8a962
/**
* This return value is to let iOS know what the result of your background fetch was, so the
* platform can better schedule future background fetches. Also, your app has up to 30 seconds
* to perform the task, otherwise your app will be terminated and future background fetches
* may be delayed.
*/
export declare enum BackgroundFetchResult {
* There was no new data to download.
NoData = 1,
* New data was successfully downloaded.
NewData = 2,
* An attempt to download data was made but that attempt failed.
Failed = 3
}
export declare enum BackgroundFetchStatus {
* The user explicitly disabled background behavior for this app or for the whole system.
Denied = 1,
* Background updates are unavailable and the user cannot enable them again. This status can occur
* when, for example, parental controls are in effect for the current user.
Restricted = 2,
* Background updates are available for the app.
Available = 3
export interface BackgroundFetchOptions {
* Inexact interval in seconds between subsequent repeats of the background fetch alarm. The final
* interval may differ from the specified one to minimize wakeups and battery usage.
* - On Android it defaults to __10 minutes__,
* - On iOS it calls [`BackgroundFetch.setMinimumIntervalAsync`](#backgroundfetchsetminimumintervalasyncminimuminterval)
* behind the scenes and the default value is the smallest fetch interval supported by the system __(10-15 minutes)__.
* Background fetch task receives no data, but your task should return a value that best describes
* the results of your background fetch work.
* @return Returns a promise that fulfils once the task is registered and rejects in case of any errors.
minimumInterval?: number;
* Whether to stop receiving background fetch events after user terminates the app.
* @default true
* @platform android
stopOnTerminate?: boolean;
* Whether to restart background fetch events when the device has finished booting.
* @default false
startOnBoot?: boolean;
//# sourceMappingURL=BackgroundFetch.types.d.ts.map