Swiftgram/Classes/BITHockeyBaseManagerPrivate.h
2013-07-27 15:25:34 +02:00

60 lines
1.5 KiB
Objective-C

//
// CNSHockeyBaseManager+Private.h
// HockeySDK
//
// Created by Andreas Linde on 04.06.12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class BITHockeyBaseManager;
@class BITHockeyBaseViewController;
@interface BITHockeyBaseManager()
@property (nonatomic, strong) NSString *appIdentifier;
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironemt:(BOOL)isAppStoreEnvironment;
- (void)startManager;
/** the value this object was initialized with */
- (BOOL)isAppStoreEnvironment;
/** by default, just logs the message
can be overriden by subclasses to do their own error handling,
e.g. to show UI
*/
- (void)reportError:(NSError *)error;
/** url encoded version of the appIdentifier
where appIdentifier is either the value this object was initialized with,
or the main bundles CFBundleIdentifier if appIdentifier ist nil
*/
- (NSString *)encodedAppIdentifier;
/** device / application helpers */
- (NSString *)getDevicePlatform;
- (NSString *)executableUUID;
/** UI helpers */
- (UIWindow *)findVisibleWindow;
- (void)showView:(UIViewController *)viewController;
/** Network helpers */
- (NSData *)appendPostValue:(NSString *)value forKey:(NSString *)key;
/** Date helpers */
- (NSDate *)parseRFC3339Date:(NSString *)dateString;
/** keychain helpers */
- (BOOL)addStringValueToKeychain:(NSString *)stringValue forKey:(NSString *)key;
- (NSString *)stringValueFromKeychainForKey:(NSString *)key;
- (BOOL)removeKeyFromKeychain:(NSString *)key;
@end