mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
24 lines
531 B
Objective-C
24 lines
531 B
Objective-C
//
|
|
// 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
|