• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GDReachability.h
Go to the documentation of this file.
1 /*
2  * (c) 2017 BlackBerry Limited. All rights reserved.
3  */
4 
5 #import <Foundation/Foundation.h>
6 #import <SystemConfiguration/SystemConfiguration.h>
7 
8 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
9 
10 /* \cond DOXYGEN_IGNORE */
11 #ifndef __has_extension
12 #define __has_extension(x) 0 // Compatibility with non-clang compilers.
13 #endif
14 /* \endcond */
15 
16 /* \cond DOXYGEN_IGNORE */
17 #if __has_extension(attribute_deprecated_with_message)
18 # define DEPRECATED_IN_GDREACHABILITY __attribute__((deprecated("Deprecated in GDReachability. Use isNetworkAvailable property instead.")))
19 #else
20 # define DEPRECATED_IN_GDREACHABILITY __attribute__((deprecated))
21 #endif
22 /* \endcond */
23 
31 typedef NS_ENUM(NSInteger, GDReachabilityStatus) {
35 
39 
43 };
44 
45 #endif
46 
54 extern NSString *GDReachabilityChangedNotification;
55 
126 @interface GDReachability : NSObject
127 
137 + (instancetype) sharedInstance;
138 
139 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
140 
153 @property (nonatomic, readonly) GDReachabilityStatus status;
154 
155 #endif
156 
167 @property (nonatomic, readonly) BOOL isNetworkAvailable;
168 
180 @property (nonatomic, readonly) BOOL isPushChannelAvailable;
181 
182 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
183 
191 + (BOOL) isNetworkAvailable DEPRECATED_IN_GDREACHABILITY;
192 #endif
193 
194 @end
GDReachability::isNetworkAvailable
BOOL isNetworkAvailable
Connection availability.
Definition: GDReachability.h:167
GDReachability::isPushChannelAvailable
BOOL isPushChannelAvailable
Push Channel availability.
Definition: GDReachability.h:180
+[GDReachability sharedInstance]
instancetype sharedInstance()
Get a reference to the BlackBerry Dynamics infrastructure connection status object.
GDReachabilityStatus
GDReachabilityStatus
Constants for GDReachability network status.
Definition: GDReachability.h:31
GDReachabilityViaCellular
@ GDReachabilityViaCellular
The infrastructure is reachable via a mobile data (cellular) connection.
Definition: GDReachability.h:42
GDReachabilityNotReachable
@ GDReachabilityNotReachable
The infrastructure isn't reachable.
Definition: GDReachability.h:34
GDReachabilityViaWiFi
@ GDReachabilityViaWiFi
The infrastructure is reachable via a Wi-Fi connection.
Definition: GDReachability.h:38
GDReachability
BlackBerry Dynamics infrastructure connection status.
Definition: GDReachability.h:126
GDReachabilityChangedNotification
NSString * GDReachabilityChangedNotification
Notification name for changes to BlackBerry Dynamics infrastructure reachability.
GDReachability::status
GDReachabilityStatus status
Connection status and medium.
Definition: GDReachability.h:153