iOS Swift背景获取-如何检查剩余的时间预算?

时间:2019-02-16 14:02:05

标签: swift4 ios12 background-fetch

我正在查看apple documentation,但是看不到函数调用来告诉我我还剩下多少时间来执行后台提取。

如何查看剩余的背景提取时间预算?

//请求每90分钟刷新一次:     UIApplication.shared.setMinimumBackgroundFetchInterval(90 * 60)

func application(_ application: UIApplication,
                     performFetchWithCompletionHandler completionHandler:
        @escaping (UIBackgroundFetchResult) -> Void) {
//how to check if I still have background execution time remaining?
}

0 个答案:

没有答案