UNPKG

1.69 kBJavaScriptView Raw
1// @needsAudit
2/**
3 * This return value is to let iOS know what the result of your background fetch was, so the
4 * platform can better schedule future background fetches. Also, your app has up to 30 seconds
5 * to perform the task, otherwise your app will be terminated and future background fetches
6 * may be delayed.
7 */
8export var BackgroundFetchResult;
9(function (BackgroundFetchResult) {
10 /**
11 * There was no new data to download.
12 */
13 BackgroundFetchResult[BackgroundFetchResult["NoData"] = 1] = "NoData";
14 /**
15 * New data was successfully downloaded.
16 */
17 BackgroundFetchResult[BackgroundFetchResult["NewData"] = 2] = "NewData";
18 /**
19 * An attempt to download data was made but that attempt failed.
20 */
21 BackgroundFetchResult[BackgroundFetchResult["Failed"] = 3] = "Failed";
22})(BackgroundFetchResult || (BackgroundFetchResult = {}));
23// @needsAudit
24export var BackgroundFetchStatus;
25(function (BackgroundFetchStatus) {
26 /**
27 * The user explicitly disabled background behavior for this app or for the whole system.
28 */
29 BackgroundFetchStatus[BackgroundFetchStatus["Denied"] = 1] = "Denied";
30 /**
31 * Background updates are unavailable and the user cannot enable them again. This status can occur
32 * when, for example, parental controls are in effect for the current user.
33 */
34 BackgroundFetchStatus[BackgroundFetchStatus["Restricted"] = 2] = "Restricted";
35 /**
36 * Background updates are available for the app.
37 */
38 BackgroundFetchStatus[BackgroundFetchStatus["Available"] = 3] = "Available";
39})(BackgroundFetchStatus || (BackgroundFetchStatus = {}));
40//# sourceMappingURL=BackgroundFetch.types.js.map
\No newline at end of file