Swiftgram/submodules/HockeySDK-iOS/Classes/BITHockeyHelper+Application.h
Peter 76e5a7fab6 Add 'submodules/HockeySDK-iOS/' from commit 'c7d0c7026303253e2ac576c02655691e5d314fe2'
git-subtree-dir: submodules/HockeySDK-iOS
git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9
git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
2019-06-11 18:53:14 +01:00

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