Created
February 13, 2020 13:17
-
-
Save greggjaskiewicz/32fa923930594a5b50a04c04cd7009d3 to your computer and use it in GitHub Desktop.
ReachabilityUpdater
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ReachabilityUpdater.h | |
// | |
// | |
// Created by Gregg Jaskiewicz on 10/04/2018. | |
// Copyright © 2018 . All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^ReachabilityUpdateCallback)(BOOL networkReachable); | |
@interface ReachabilityUpdater : NSObject | |
- (instancetype __nullable)init __attribute__((unavailable("You cannot create a ReachabilityUpdater instance through init - please initWithUpdateCallback:"))); | |
- (instancetype _Nonnull)initWithUpdateCallback:(ReachabilityUpdateCallback __nonnull)callback NS_DESIGNATED_INITIALIZER; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment