BlackBerry Dynamics infrastructure connection status. More...
#import <BlackBerryDynamics/GD/GDReachability.h>
This class represents the status of the connection from the application to the BlackBerry Dynamics infrastructure.
Every BlackBerry Dynamics application connects to the BlackBerry Dynamics infrastructure whenever possible. The connection is maintained by the BlackBerry Dynamics runtime instance that is embedded in the application. The infrastructure includes the BlackBerry Dynamics Network Operation Center (NOC) as well as a number of other components that can be installed by the enterprise.
The current status can be obtained synchronously. It is also possible to receive notifications whenever the status changes. Use the native NSNotificationCenter
programming interface, with the following parameters.
[G
DiOS sharedInstance]
. The following code snippets illustrate some common tasks.
The above snippet shows:
Class Methods | |
(instancetype) | + sharedInstance |
Get a reference to the BlackBerry Dynamics infrastructure connection status object. More... | |
(BOOL) | + isNetworkAvailable |
Connection availability (deprecated). More... | |
Properties | |
GDReachabilityStatus | status |
Connection status and medium. More... | |
BOOL | isNetworkAvailable |
Connection availability. More... | |
BOOL | isPushChannelAvailable |
Push Channel availability. More... | |
+ (instancetype) sharedInstance |
This function returns a reference to the BlackBerry Dynamics infrastructure connection status object, which is a "singleton class".
status
property. + (BOOL) isNetworkAvailable |
isNetworkAvailable
property instead.YES
if there is a current connection to the infrastructure. NO
otherwise.
|
readnonatomicassign |
The value of this property represents the type of connection through which the BlackBerry Dynamics infrastructure is reachable. It always takes a value from the GDReachabilityStatus enumeration:
GDReachabilityViaCellular
if the infrastructure is reachable via a mobile data (cellular) connection.GDReachabilityViaWiFi
if the infrastructure is reachable via a Wi-Fi connection.GDReachabilityNotReachable
if the infrastructure isn't reachable.
|
readnonatomicassign |
The value of this property represents the availability of the connection to the BlackBerry Dynamics infrastructure.
A change to the availability of the connection will trigger an infrastructure status change notification to the application. See the class description, above, for details of how to register for these notifications. In addition, key-value observing (KVO) can be applied to this property.
|
readnonatomicassign |
The value of this property represents the availability of the BlackBerry Dynamics Push Channel service. For an overall description of how to use the service, see under GDPushChannel .
A change to the availability of the Push Channel service will trigger an infrastructure status change notification to the application. See the class description, above, for details of how to register for these notifications. In addition, key-value observing (KVO) can be applied to this property.