FMRealReachability Class Reference
Inherits from | NSObject |
---|---|
Declared in | FMRealReachability.h FMRealReachability.m |
Other Methods
– reachabilityWithBlock:
To get real reachability we need to do async request, then we use the block blow for invoker to handle business request(need real reachability).
- (void)reachabilityWithBlock:(void ( ^ ) ( FMReachabilityStatus status ))asyncHandler
Parameters
asyncHandler |
async request handler, return in 2 seconds(max limit). |
---|
Discussion
To get real reachability we need to do async request, then we use the block blow for invoker to handle business request(need real reachability).
Declared In
FMRealReachability.h
– currentReachabilityStatus
Return current reachability immediately.
- (FMReachabilityStatus)currentReachabilityStatus
Return Value
see enum LocalConnectionStatus
Discussion
Return current reachability immediately.
Declared In
FMRealReachability.h
– previousReachabilityStatus
Return previous reachability status.
- (FMReachabilityStatus)previousReachabilityStatus
Return Value
see enum LocalConnectionStatus
Discussion
Return previous reachability status.
Declared In
FMRealReachability.h
– currentWWANtype
Return current WWAN type immediately.
- (FMWWANAccessType)currentWWANtype
Return Value
unknown/4g/3g/2g.
This method can be used to improve app’s further network performance (different strategies for different WWAN types).
Discussion
Return current WWAN type immediately.
Declared In
FMRealReachability.h
Other Methods
hostForPing
Please make sure this host is available for pinging! default host:www.baidu.com
@property (nonatomic, copy) NSString *hostForPing
Discussion
Please make sure this host is available for pinging! default host:www.baidu.com
Declared In
FMRealReachability.h
autoCheckInterval
Interval in minutes; default is 2.0f, suggest value from 0.3f to 60.0f; If exceeded, the value will be reset to 0.3f or 60.0f (the closer one).
@property (nonatomic, assign) float autoCheckInterval
Discussion
Interval in minutes; default is 2.0f, suggest value from 0.3f to 60.0f; If exceeded, the value will be reset to 0.3f or 60.0f (the closer one).
Declared In
FMRealReachability.h