Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 438 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 438 Bytes

BackgroundRunner

This class can make a iOS Application running in background. And it can last far more than 10 mins.

#API

three methods is all we need

/** hold the thread when background task will terminate */

- (void)hold;

/** free from holding when applicaiton become active */

- (void)stop;

/** running in background, call this funciton when application become background */

- (void)run;