blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDLogManager.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All rights reserved.
00003  */
00004 
00005 #import <Foundation/Foundation.h>
00006 
00018 typedef NS_ENUM(NSInteger, GDLogUploadState)
00019 {
00024     GDLogUploadStateIdle       = 0,
00025 
00028     GDLogUploadStateInProgress = 100,
00029 
00032     GDLogUploadStateCompleted  = 200,
00033 
00038     GDLogUploadStateCancelled  = 300,
00039 
00042     GDLogUploadStateSuspended  = 400,
00043 
00046     GDLogUploadStateResumed    = 500,
00047 };
00048 
00055 extern NSString * const GDLogUploadNotification;
00056 
00064 extern const NSTimeInterval GDLogManagerDetailedMaximumDuration;
00065 
00131 @interface GDLogManager : NSObject
00132 
00137 @property (nonatomic, readonly) GDLogUploadState uploadState;
00138 
00144 @property (nonatomic, readonly) NSInteger          uploadBytesSent;
00145 
00150 @property (nonatomic, readonly) NSInteger          uploadBytesTotal;
00151 
00160 + (instancetype)sharedInstance;
00161 
00197 - (BOOL)startUpload;
00198 
00209 - (BOOL)cancelUpload;
00210 
00221 - (BOOL)suspendUpload;
00222 
00232 - (BOOL)resumeUpload;
00233 
00279 - (BOOL)detailedLoggingFor:(NSTimeInterval) duration;
00280 
00281 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
00282 
00300 - (void) openLogUploadUI;
00301 #endif
00302 @end