Map Doc  1.0
iOS-引擎SDK-开放平台
MBReachability类 参考

#import <MBReachability.h>

类 MBReachability 继承关系图:

构造函数

(BOOL) - startNotifier
 
(void) - stopNotifier
 
(MBNetworkStatus- currentReachabilityStatus
 
(BOOL) - connectionRequired
 

类方法

(instancetype) + reachabilityWithHostName:
 
(instancetype) + reachabilityWithAddress:
 
(instancetype) + reachabilityForInternetConnection
 

函数文档

◆ connectionRequired()

- (BOOL) connectionRequired

WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand.

◆ currentReachabilityStatus()

- (MBNetworkStatus) currentReachabilityStatus

◆ reachabilityForInternetConnection()

+ (instancetype) reachabilityForInternetConnection

Checks whether the default route is available. Should be used by applications that do not connect to a particular host.

◆ reachabilityWithAddress:()

+ (instancetype) reachabilityWithAddress: (const struct sockaddr *)  hostAddress

Use to check the reachability of a given IP address.

◆ reachabilityWithHostName:()

+ (instancetype) reachabilityWithHostName: (NSString *)  hostName

Use to check the reachability of a given host name.

◆ startNotifier()

- (BOOL) startNotifier

Start listening for reachability notifications on the current run loop.

◆ stopNotifier()

- (void) stopNotifier

该类的文档由以下文件生成: