mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/HockeySDK-iOS git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9 git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
49 lines
1.1 KiB
Objective-C
49 lines
1.1 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "BITHockeyHelper.h"
|
|
/*
|
|
* Workaround for exporting symbols from category object files.
|
|
*/
|
|
extern NSString *BITHockeyHelperApplicationCategory;
|
|
|
|
/**
|
|
* App states
|
|
*/
|
|
typedef NS_ENUM(NSInteger, BITApplicationState) {
|
|
|
|
/**
|
|
* Application is active.
|
|
*/
|
|
BITApplicationStateActive = UIApplicationStateActive,
|
|
|
|
/**
|
|
* Application is inactive.
|
|
*/
|
|
BITApplicationStateInactive = UIApplicationStateInactive,
|
|
|
|
/**
|
|
* Application is in background.
|
|
*/
|
|
BITApplicationStateBackground = UIApplicationStateBackground,
|
|
|
|
/**
|
|
* Application state can't be determined.
|
|
*/
|
|
BITApplicationStateUnknown
|
|
};
|
|
|
|
@interface BITHockeyHelper (Application)
|
|
|
|
/**
|
|
* Get current application state.
|
|
*
|
|
* @return Current state of the application or BITApplicationStateUnknown while the state can't be determined.
|
|
*
|
|
* @discussion The application state may not be available everywhere. Application extensions doesn't have it for instance,
|
|
* in that case the BITApplicationStateUnknown value is returned.
|
|
*/
|
|
+ (BITApplicationState)applicationState;
|
|
|
|
@end
|