| Streamaxia Open SDK 3.2

AXReachability.h
1 //
2 // AXReachability.h
3 // StreamaxiaSDK
4 //
5 // Created by Mihaita Babici on 7/19/16.
6 // Copyright © 2016 Agilio. All rights reserved.
7 //
8
9 @import Foundation;
10 @import SystemConfiguration;
11
16 extern NSString * const kAXReachabilityDidChangeNotification;
17
25 typedef NS_ENUM(NSInteger, AXNetworkStatus) {
26 AXNetworkStatusNotReachable = 0,
27 AXNetworkStatusReachableViaWiFi,
28 AXNetworkStatusReachableViaWWAN
29 };
30
34 @interface AXReachability : NSObject
35
39
44 @property (nonatomic, copy, readwrite) void (^networkDidBecomeReachableBlock)(AXNetworkStatus status);
45
50 @property (nonatomic, copy, readwrite) void (^networkDidBecomeUnreachableBlock)(void);
51
56 @property (nonatomic, copy, readwrite) void (^networkDidChangeReachabilityBlock)(AXNetworkStatus status);
57
61 @property (nonatomic, assign, readonly) BOOL isConnectionRequired;
62
66 @property (nonatomic, assign, readonly) BOOL isConnectionOnDemand;
67
71 @property (nonatomic, assign, readonly) BOOL isUserInteractionRequired;
72
76 @property (nonatomic, assign, readonly) BOOL isReachable;
77
81 @property (nonatomic, assign, readonly) BOOL isReachableOnWiFi;
82
86 @property (nonatomic, assign, readonly) BOOL isReachableOnWWAN;
87
91 @property (nonatomic, assign, readonly) BOOL didStartMonitoringNetworkStatus;
92
96 @property (nonatomic, assign, readonly) AXNetworkStatus currentReachabilityStatus;
97
101 @property (nonatomic, strong, readonly) NSString *currentReachabilityString;
102
106
114 + (instancetype)reachabilityWithHostName:(NSString *)hostName;
115
123 + (instancetype)reachabilityWithHostAddress:(void *)hostAddress;
124
130 + (instancetype)reachabilityForInternetConnection;
131
137 + (instancetype)reachabilityForLocalWiFi;
138
142
151 - (BOOL)startMonitoringNetworkStatus;
152
156 - (void)stopMonitoringNetworkStatus;
157
163 - (NSString *)debugFlagsString;
164
171 - (NSString *)debugDescription;
172
173 @end
+[AXReachability reachabilityForLocalWiFi]
instancetype reachabilityForLocalWiFi()
-[AXReachability debugFlagsString]
NSString * debugFlagsString()
AXReachability::currentReachabilityStatus
AXNetworkStatus currentReachabilityStatus
Definition: AXReachability.h:96
AXReachability::currentReachabilityString
NSString * currentReachabilityString
Definition: AXReachability.h:101
-[AXReachability stopMonitoringNetworkStatus]
void stopMonitoringNetworkStatus()
AXReachability::isConnectionOnDemand
BOOL isConnectionOnDemand
Definition: AXReachability.h:66
-[AXReachability startMonitoringNetworkStatus]
BOOL startMonitoringNetworkStatus()
+[AXReachability reachabilityForInternetConnection]
instancetype reachabilityForInternetConnection()
AXReachability::networkDidChangeReachabilityBlock
void(^ networkDidChangeReachabilityBlock)(AXNetworkStatus status)
-[AXReachability debugDescription]
NSString * debugDescription()
AXReachability
Definition: AXReachability.h:34
AXReachability::isReachableOnWWAN
BOOL isReachableOnWWAN
Definition: AXReachability.h:86
AXReachability::isUserInteractionRequired
BOOL isUserInteractionRequired
Definition: AXReachability.h:71
AXReachability::didStartMonitoringNetworkStatus
BOOL didStartMonitoringNetworkStatus
Definition: AXReachability.h:91
AXReachability::isReachableOnWiFi
BOOL isReachableOnWiFi
Definition: AXReachability.h:81
AXReachability::networkDidBecomeUnreachableBlock
void(^ networkDidBecomeUnreachableBlock)(void)
AXReachability::isConnectionRequired
BOOL isConnectionRequired
Definition: AXReachability.h:61
AXReachability::isReachable
BOOL isReachable
Definition: AXReachability.h:76
AXReachability::networkDidBecomeReachableBlock
void(^ networkDidBecomeReachableBlock)(AXNetworkStatus status)