|
|
@@ -133,6 +133,12 @@ typedef NS_ENUM(NSInteger, PsiphonConnectionState)
|
|
|
*/
|
|
|
- (id _Nullable)getPsiphonConfig;
|
|
|
|
|
|
+//
|
|
|
+// Optional delegate methods. Note that some of these are probably necessary for
|
|
|
+// for a functioning app to implement, for example `onConnected`.
|
|
|
+//
|
|
|
+@optional
|
|
|
+
|
|
|
/*!
|
|
|
Called when the tunnel is starting to get the initial server entries (typically embedded in the app) that will be used to bootstrap the Psiphon tunnel connection. This value is in a particular format and will be supplied by Psiphon Inc.
|
|
|
If getEmbeddedServerEntriesPath is also implemented, it will take precedence over this method, unless getEmbeddedServerEntriesPath returns NULL or an empty string.
|
|
|
@@ -140,12 +146,6 @@ typedef NS_ENUM(NSInteger, PsiphonConnectionState)
|
|
|
*/
|
|
|
- (NSString * _Nullable)getEmbeddedServerEntries;
|
|
|
|
|
|
-//
|
|
|
-// Optional delegate methods. Note that some of these are probably necessary for
|
|
|
-// for a functioning app to implement, for example `onConnected`.
|
|
|
-//
|
|
|
-@optional
|
|
|
-
|
|
|
/*!
|
|
|
Called when the tunnel is starting to get the initial server entries (typically embedded in the app) that will be used to bootstrap the Psiphon tunnel connection. This value is in a particular format and will be supplied by Psiphon Inc.
|
|
|
If this method is implemented, it takes precedence over getEmbeddedServerEntries, and getEmbeddedServerEntries will not be called unless this method returns NULL or an empty string.
|