Newer
Older
XinYang_IOS / Carthage / Build / iOS / OpenVPNAdapter.framework / Headers / OpenVPNReachability.h
@zhangfeng zhangfeng on 7 Dec 2023 531 bytes 1.8.0
//
//  OpenVPNReachability.h
//  OpenVPN Adapter
//
//  Created by Sergey Abramchuk on 17.07.17.
//
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, OpenVPNReachabilityStatus);

@interface OpenVPNReachability : NSObject

@property (readonly, nonatomic, getter=isTracking) BOOL tracking;
@property (readonly, nonatomic) OpenVPNReachabilityStatus reachabilityStatus;

- (nonnull instancetype)init;

- (void)startTrackingWithCallback:(nonnull void (^)(OpenVPNReachabilityStatus))callback;
- (void)stopTracking;

@end