bfgNetwork Class
A helper class for determining whether or not an Internet connection is available. More...
#import <bfgNetwork.h>
Instance Methods | |
(BOOL) | - isReachable |
(BOOL) | - isWIFI |
(BOOL) | - isHostReachable: |
(BOOL) | - addRemoteHost: |
Class Methods | |
(bfgNetwork *) | + sharedInstance |
(void) | + initialize |
Detailed Description
A helper class for determining whether or not an Internet connection is available.
- Since
- 4.5.0
Method Documentation
◆ addRemoteHost:
- (BOOL) addRemoteHost: | (NSString *) | remoteHost |
When interested in the reachability of a particular host, add the name of that host here and the service will asynchronously determine whether or not it can be reached.
- Since
- 4.5.0
◆ initialize
+ (void) initialize |
◆ isHostReachable:
- (BOOL) isHostReachable: | (NSString *) | remoteHost |
Ask for the reachability status of a particular host. Checks for host reachability are asynchronous and this method provides the latest available value.
- Since
- 4.5.0
◆ isReachable
- (BOOL) isReachable |
The network is reachable via either WiFi or cellular means.
- Since
- 4.5.0
◆ isWIFI
- (BOOL) isWIFI |
The network is reachable via WiFi.
- Since
- 4.5.0
◆ sharedInstance
+ (bfgNetwork *) sharedInstance |
A singleton accessor to a bfgNetwork instance.
- Since
- 4.5.0