session-ios/SessionMessagingKit/Utilities/SSKReachabilityManager.swift

16 lines
332 B
Swift
Raw Normal View History

2020-11-25 06:15:16 +01:00
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
}