mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
16 lines
332 B
Swift
16 lines
332 B
Swift
|
import Reachability
|
||
|
|
||
|
@objc(SSKReachabilityType)
|
||
|
public enum ReachabilityType: Int {
|
||
|
case any, wifi, cellular
|
||
|
}
|
||
|
|
||
|
@objc
|
||
|
public protocol SSKReachabilityManager {
|
||
|
var observationContext: AnyObject { get }
|
||
|
func setup()
|
||
|
|
||
|
var isReachable: Bool { get }
|
||
|
func isReachable(via reachabilityType: ReachabilityType) -> Bool
|
||
|
}
|