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

GDState.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2018 BlackBerry Limited. All rights reserved.
00003  *
00004  */
00005 
00006 #pragma once
00007 
00008 #import "GDAppResultCode.h"
00009 
00031 extern NSString* const GDRemoteSettingsUpdateNotification;
00032 
00039 extern NSString* const GDServicesUpdateNotification;
00040 
00047 extern NSString* const GDPolicyUpdateNotification;
00048 
00057 extern NSString* const GDEntitlementsUpdateNotification;
00058 
00086 extern NSString* const GDContainerMigrationPendingNotification;
00087 
00097 extern NSString* const GDContainerMigrationCompletedNotification;
00098 
00104 extern NSString* const GDStateChangeNotification;
00105 
00109 extern NSString* const GDStateChangeKeyProperty;
00110 
00114 extern NSString* const GDStateChangeKeyCopy;
00115 
00121 extern NSString* const GDActivationChangeNotification;
00122 
00126 extern NSString* const BBDActivationStateKey;
00127 
00131 extern NSString* const BBDActivationDescriptionKey;
00132 
00137 extern NSString* const BBDActivationProcessingIndexKey;
00138 
00142 extern NSString* const BBDActivationErrorKey;
00143 
00147 extern NSString* const BBDKeyActivationState;
00148 
00151 extern NSString* const GDKeyIsAuthorized;
00152 
00155 extern NSString* const GDKeyReasonNotAuthorized;
00156 
00159 extern NSString* const GDKeyUserInterfaceState;
00160 
00163 extern NSString* const GDKeyCurrentScreen;
00164 
00173 typedef NS_ENUM(NSInteger, GDUserInterfaceState)
00174 {
00177     GDUIStateNone = 0,
00178     
00181     GDUIStateApplicationInFront,
00182     
00185     GDUIStateGDLibraryInFront,
00186     
00196     GDUIStateBypassUnlockInFront
00197 };
00198 
00208 typedef NS_ENUM(NSInteger, GDLibraryScreen)
00209 {
00212     GDLibraryScreenNone = 0,
00213     
00220     GDLibraryScreenCertificateImport,
00221     
00224     GDLibraryScreenOther = 1000
00225 };
00226 
00232 typedef NS_ENUM(NSInteger, BBDActivationState)
00233 {
00234     BBDActivationStateNotActivated = 0,
00235     BBDActivationStateInProgress,
00236     BBDActivationStateActivated
00237 };
00238 
00314 @interface GDState : NSObject
00315 
00340 @property (nonatomic, readonly) BOOL isAuthorized;
00341 
00349 @property (nonatomic, readonly) GDAppResultCode reasonNotAuthorized;
00350 
00360 @property (nonatomic, readonly) GDUserInterfaceState userInterfaceState;
00361 
00370 @property (nonatomic, readonly) GDLibraryScreen currentScreen;
00371 
00377 @property (nonatomic, readonly) BBDActivationState activationState;
00378 
00384 @property (nonatomic, readonly) NSArray<NSString *> *activationProcessingDescriptions;
00385 
00390 @property (nonatomic, readonly) NSUInteger activationProcessingIndex;
00391 @end