Background Tasks

Panther·2021년 8월 16일
0

https://developer.apple.com/documentation/backgroundtasks

"Request the system to launch your app in the background to run tasks."

백그라운드에서 작업을 실행하기 위해 앱 launch를 시스템에게 요청합니다.

Overview

BackgroundTasks 프레임워크를 사용해서 앱이 백그라운드에 있는 동안에도 컨텐트를 최신 상태로 유지하고 완료해야 하는 작업에 대한 시간을 요청해 작업을 완료하시기 바랍니다. 긴 시간이 필요한 작업은 선택적으로 전원 연결 기기와 네트워크 연결을 요구할 수 있습니다.

필요한 경우 앱이 작업을 launch하고 스케줄링할 때 작업에 대한 launch 핸들러를 등록하시기 바랍니다. 시스템은 백그라운드에서 앱을 lauch하고 작업을 실행할 것입니다.

Topics


Essentials

BGTaskScheduler

백그라운드에서 앱을 launch 하는 작업 요청에 대해 스케줄링하기 위한 클래스입니다.

https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler
https://velog.io/@panther222128/BGTaskScheduler

Starting and Terminating Tasks During Development

작업을 시작하기 위해, 그리고 컴플리션 전에 작업을 종료시키기 위해 개발 중 디버거를 사용합니다.

https://developer.apple.com/documentation/backgroundtasks/starting_and_terminating_tasks_during_development
https://velog.io/@panther222128/Starting-and-Terminating-Tasks-During-Development

Choosing Background Strategies for Your App

앱에서 백그라운드 런타임 스케줄링을 위한 최선의 메소드를 선택합니다.

https://developer.apple.com/documentation/backgroundtasks/choosing_background_strategies_for_your_app
https://velog.io/@panther222128/Choosing-Background-Strategies-for-Your-App


Requests

BGProcessingTaskRequest

완료하기에 시간이 걸리는 프로세싱 작업 수행을 백그라운드에서 launch할 수 있도록 해주는 요청입니다.

https://developer.apple.com/documentation/backgroundtasks/bgprocessingtaskrequest
https://velog.io/@panther222128/BGProcessingTaskRequest

BGAppRefreshTaskRequest

짧은 리프레시 작업 수행을 위해 백그라운드에서 앱을 launch할 수 있도록 해주는 요청입니다.

https://developer.apple.com/documentation/backgroundtasks/bgapprefreshtaskrequest
https://velog.io/@panther222128/BGAppRefreshTaskRequest

BGTaskRequest

작업 요청을 나타내기 위한 추상 클래스입니다.

https://developer.apple.com/documentation/backgroundtasks/bgtaskrequest
https://velog.io/@panther222128/BGTaskRequest


Task Management

BGProcessingTask

앱이 백그라운드에 있는 동안 실행되는, 시간을 소비하는 프로세싱 작업입니다.

https://developer.apple.com/documentation/backgroundtasks/bgprocessingtask
https://velog.io/@panther222128/BGProcessingTask

BGAppRefreshTask

앱이 백그라운드에 있는 동안 컨텐트 리프레시를 위해 사용되는 짧은 작업을 나타내는 객체입니다.

https://developer.apple.com/documentation/backgroundtasks/bgapprefreshtask
https://velog.io/@panther222128/BGAppRefreshTask

BGTask

앱이 백그라운드에 있는 동안 실행되는 작업을 나타내는 추상 클래스입니다.

https://developer.apple.com/documentation/backgroundtasks/bgtask
https://velog.io/@panther222128/BGTask


0개의 댓글