BGProcessingTask

Panther·2021년 8월 16일
0

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

"A time-consuming processing task that runs while the app is in the background."

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

Declaration

class BGProcessingTask : BGTask

Overview

긴 시간이 필요한 데이터 업데이트, 데이터 프로세싱, 앱 유지보스를 위한 프로세싱 작업을 사용하시기 바랍니다. 프로세싱 작업은 몇 분 동안 실행될 수 있을지라도, 시스템은 프로세스를 인터럽트할 수 있습니다. expirationHandler를 설정해서 만료 핸들러를 추가하시기 바랍니다.

프로세싱 작업을 실행하는 것은 프로세싱 UIBackgroundModes 기능 설정을 요구합니다. 이 기능 설정에 대한 정보는 BGTaskScheduler를 보시기 바랍니다.

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

프로세싱 작업은 기기가 유휴상태일 때에만 실행됩니다. 시스템은 사용자가 기기를 사용할 때 모든 백그라운드 프로세싱 작업 실행을 종료시킬 수 있습니다. 백그라운드 리프레시 작업은 영향을 받지 않습니다.

See Also


Task Management

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개의 댓글