diff --git a/AFNetworking/AFHTTPClient.h b/AFNetworking/AFHTTPClient.h index e5a1650..5cc6913 100644 --- a/AFNetworking/AFHTTPClient.h +++ b/AFNetworking/AFHTTPClient.h @@ -162,6 +162,9 @@ extern NSString * AFQueryStringFromParametersWithEncoding(NSDictionary *paramete ///----------------------------------- /** + Sets a callback to be executed when the network availability of the `baseURL` host changes. + + @param block A block object to be executed when the network availability of the `baseURL` host changes.. This block has no return value and takes a single argument, which is `YES` if the host is available, otherwise `NO`. */ - (void)setReachabilityStatusChangeBlock:(void (^)(BOOL isNetworkReachable))block;