session-ios/SessionMessagingKit/Utilities/SSKReachabilityManager.swift
nielsandriesse 5dfd4b1965 Restructure
2020-11-25 16:15:16 +11:00

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
}