BlackBerry Dynamics run-time state. More...
#import <GDState.h>
This class represents a number of aspects of the BlackBerry Dynamics run-time state. The representation is compliant with key-value observing (KVO).
The following aspects of run-time state are represented here.
To get a current state synchronously, read the instance's properties. To receive a notification whenever an aspect of the current state changes, use KVO or NSNotificationCenter programming interfaces, with the following notes.
Notes on KVO usage:
Notes on NSNotificationCenter
usage:
userInfo
dictionary with the following items.GDStateChangeKeyProperty
constant.GDSt
ate
instance as it was after the change, in the key named by the GDStateChangeKeyCopy
constant.Using this class is an alternative to using some parts of using the GDMacDelegate class.
- (BOOL) isAuthorized [read, assign] |
The BlackBerry Dynamics runtime sets this property to NO
when the application starts.
The BlackBerry Dynamics runtime sets this property to YES
when authorization processing completes with success. The property value remains the same when the inactivity time expires and the user interface is locked.
The BlackBerry Dynamics runtime sets this property to NO
if the end user's authorization to use the application is permanently withdrawn. For example, when any of the following happen.
If this property has the value YES
, then the prinicipal programming interfaces of BlackBerry Dynamics can be used by the application code. This includes access to the secure store and secure communication, for example.
- (GDAppResultCode) reasonNotAuthorized [read, assign] |
The BlackBerry Dynamics runtime sets this property when the user isn't authorized, i.e. when the isAuthorized property is NO
. The value set represents the reason that the user isn't authorized. It will be from the GDAppResultCode enumeration.
- (GDUserInterfaceState) userInterfaceState [read, assign] |
The BlackBerry Dynamics runtime sets this property to GDUIStateGDLibraryInFront
when any of its built-in screens is in front of the application user interface.
The BlackBerry Dynamics runtime sets this property to a different value otherwise. See the GDUserInterfaceState enumeration.
- (GDLibraryScreen) currentScreen [read, assign] |
The BlackBerry Dynamics runtime sets this property when its user interface is in front, i.e. when it has set userInterfaceState
to GDUIStateGDLibraryInFront
. The value set gives a limited indication of which screen it is showing. See the GDLibraryScreen enumeration.