Skip to content

Instantly share code, notes, and snippets.

@greggjaskiewicz
Created February 13, 2020 13:17
Show Gist options
  • Save greggjaskiewicz/32fa923930594a5b50a04c04cd7009d3 to your computer and use it in GitHub Desktop.
Save greggjaskiewicz/32fa923930594a5b50a04c04cd7009d3 to your computer and use it in GitHub Desktop.
ReachabilityUpdater
//
// 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