- finalised theme 2 collection clicks
- worked on homelive tv observers - addd fav remove fav for audio books will now locally update my list instead reloading - addd fav remove fav for karaoke will now locally update my list instead reloading - addd fav remove fav for games will now locally update my list instead reloading
This commit is contained in:
@@ -12,10 +12,12 @@ class NetworkReachibility{
|
||||
static let shared = NetworkReachibility()
|
||||
private init(){}
|
||||
let manager = NetworkReachabilityManager(host: "www.apple.com")
|
||||
var isMonitoring = false
|
||||
fileprivate var isInternetReachable = false
|
||||
|
||||
func startMonitoring(onCompletion : @escaping (Bool) -> Void) {
|
||||
manager?.startListening(onQueue: DispatchQueue.main, onUpdatePerforming: { (status) in
|
||||
self.isMonitoring = true
|
||||
switch status {
|
||||
case .notReachable:
|
||||
print("network connection status - lost")
|
||||
@@ -38,6 +40,7 @@ class NetworkReachibility{
|
||||
}
|
||||
|
||||
func stopMonitoring(){
|
||||
self.isMonitoring = false
|
||||
manager?.stopListening()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user