mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
15 lines
332 B
Swift
15 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
|
|
}
|