|
|
@ -55,6 +55,11 @@ NSString *NSStringForUIApplicationState(UIApplicationState value);
|
|
|
|
// This method is thread-safe.
|
|
|
|
// This method is thread-safe.
|
|
|
|
- (BOOL)isInBackground;
|
|
|
|
- (BOOL)isInBackground;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// A convenience accessor for reportedApplicationState.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// This method is thread-safe.
|
|
|
|
|
|
|
|
- (BOOL)isAppForegroundAndActive;
|
|
|
|
|
|
|
|
|
|
|
|
// Should start a background task if isMainApp is YES.
|
|
|
|
// Should start a background task if isMainApp is YES.
|
|
|
|
// Should just return UIBackgroundTaskInvalid if isMainApp is NO.
|
|
|
|
// Should just return UIBackgroundTaskInvalid if isMainApp is NO.
|
|
|
|
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:
|
|
|
|
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:
|
|
|
|