From 6be79aa05cf6a40e6f65009aa06cf200f1fe6cb9 Mon Sep 17 00:00:00 2001 From: GuanZhenwei Date: Thu, 28 Jun 2018 18:48:29 +0800 Subject: [PATCH] update readme for 1.3.0 --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 427042f..e323b93 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # RealReachability -[![Version](https://img.shields.io/badge/pod-1.2.2-yellow.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.2/) -[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.2/) -[![Platform](https://img.shields.io/badge/Platform-iOS-orange.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.2/) -[![Platform](https://img.shields.io/badge/Build-Passed-green.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.2/) +[![Version](https://img.shields.io/badge/pod-1.3.0-yellow.svg)](http://cocoadocs.org/docsets/RealReachability/1.3.0/) +[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://cocoadocs.org/docsets/RealReachability/1.3.0) +[![Platform](https://img.shields.io/badge/Platform-iOS-orange.svg)](http://cocoadocs.org/docsets/RealReachability/1.3.0/) +[![Platform](https://img.shields.io/badge/Build-Passed-green.svg)](http://cocoadocs.org/docsets/RealReachability/1.3.0/) #### We need to observe the REAL reachability of network for iOS. That's what RealReachability do. # Why RealReachability? @@ -154,6 +154,11 @@ For more details about the "doublecheck" feature, you can go deep into the codes ``` Current WWAN type might be used to improve your app's user experience(e.g, set different network request timeout interval for different WWAN type). +#### Check the VPN status of your network +``` +- (BOOL)isVPNOn; +``` +With the help of this method, we have improved our reachability check logic when using VPN. #### More: We can also use PingHelper or LocalConnection alone to make a ping action or just observe the local connection. Pod usage like blow (we have two pod subspecs):