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

GDState.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All rights reserved.
00003  *
00004  */
00005 
00006 #pragma once
00007 
00008 #import "GDAppResultCode.h"
00009 
00026 extern NSString* const GDStateChangeNotification;
00027 
00031 extern NSString* const GDStateChangeKeyProperty;
00032 
00036 extern NSString* const GDStateChangeKeyCopy;
00037 
00040 extern NSString* const GDKeyIsAuthorized;
00041 
00044 extern NSString* const GDKeyReasonNotAuthorized;
00045 
00048 extern NSString* const GDKeyUserInterfaceState;
00049 
00052 extern NSString* const GDKeyCurrentScreen;
00053 
00062 typedef NS_ENUM(NSInteger, GDUserInterfaceState)
00063 {
00066     GDUIStateNone = 0,
00067     
00070     GDUIStateApplicationInFront,
00071     
00074     GDUIStateGDLibraryInFront,
00075     
00086     GDUIStateBypassUnlockInFront
00087 };
00088 
00098 typedef NS_ENUM(NSInteger, GDLibraryScreen)
00099 {
00102     GDLibraryScreenNone = 0,
00103     
00110     GDLibraryScreenCertificateImport,
00111     
00114     GDLibraryScreenOther = 1000
00115 };
00116 
00170 @interface GDState : NSObject
00171 
00196 @property (nonatomic, readonly) BOOL isAuthorized;
00197 
00205 @property (nonatomic, readonly) GDAppResultCode reasonNotAuthorized;
00206 
00216 @property (nonatomic, readonly) GDUserInterfaceState userInterfaceState;
00217 
00226 @property (nonatomic, readonly) GDLibraryScreen currentScreen;
00227 
00228 @end