Parcourir la source

Merge pull request #378 from adam-p/ios-onStartedWaitingForNetworkConnectivity

iOS library: Add onStartedWaitingForNetworkConnectivity
Adam Pritchard il y a 8 ans
Parent
commit
2c567bb968

+ 1 - 0
.gitignore

@@ -5,6 +5,7 @@ controller_test.config
 psiphon.db*
 psiphon.boltdb
 remote_server_list
+psiphon-embedded-server-entries.txt
 
 # Exclude compiled tunnel core binaries
 ConsoleClient/ConsoleClient

+ 7 - 0
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.h

@@ -121,6 +121,13 @@ FOUNDATION_EXPORT const unsigned char PsiphonTunnelVersionString[];
  */
 - (void)onConnected;
 
+/*!
+ Called when the tunnel notices that the device has no network connectivity and
+ begins waiting to regain it. When connecitvity is regained, `onConnecting`
+ will be called.
+ */
+- (void)onStartedWaitingForNetworkConnectivity;
+
 /*!
  Called to indicate that tunnel-core is exiting imminently (usually do to
  a `stop()` call, but could be due to an unexpected error).

Fichier diff supprimé car celui-ci est trop grand
+ 24 - 6
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff