This class hides the complexity of VPN Unlimited SDK by encapsulating most of the needed features.
Extends: NSObject
Declared in: KSVPNUFacade.h
- (void)cancelAllRequests;
- (void)initializeSettingsOfStandaloneWithAppID:(NSString *)appID appSecret:(NSString *)appSecret applicationGroupIdentifier:(NSString *)applicationGroupIdentifier appVersion:(NSString *)appVersion sharedKeychainGroupID:(NSString *)sharedKeychainGroupID helperToolBundleIdentifier:(NSString *)helperToolBundleIdentifier daemonBundleName:(NSString *)daemonBundleName completion:(dispatch_block_t)completion;
.
- (void)initializeSettingsWithAppID:(NSString *)appID appSecret:(NSString *)appSecret applicationGroupIdentifier:(NSString *)applicationGroupIdentifier appVersion:(NSString *)appVersion sharedKeychainGroupID:(NSString *)sharedKeychainGroupID providerBundleIdentifier:(NSString *)providerBundleIdentifier wgProviderBundleIdentifier:(NSString *)wgProviderBundleIdentifier profileName:(NSString *)profileName completion:(dispatch_block_t)completion;
.
@property (readonly) VPNUConnection *connection;
Intance of VPNUConnection which is used to configure and control VPN connections.
This object is read-only and created lazily inside KSVPNUFacade implementation.
@property (strong) VPNUAccountStatus *currentAccountStatus;
Currently logged-in user's account status.
@property (strong) VPNUAccountDevice *currentDeviceInfo;
Info about currently logged-in user's device.
@property (strong) NSArray<VPNUServerItem *> *currentServersList;
Currently user's servers list from the serverListWithOptions:completion: method.
@property (strong) VPNUAccountUserInfo *currentUserInfo;
Info about currently logged-in user.
@property (strong) id<VPNUAuthDelegate> customAuthDelegate;
A delegate object which conforms to VPNUAuthDelegate protocol.
Once you define an object which conforms to VPNUAuthDelegate, set this property with it. If you are using non-standard authorization methods (like authorizing with social networks), you must provide an object which resolves custom authorization with third-party server and returns authentication details.
@property (class, readonly) KSVPNUFacade *defaultFacade;
Singleton instance of Facade.
typedef enum { KSVPNUServerListOptionsNonAuthorized = 1 << 0, KSVPNUServerListOptionsOptimal = 1 << 1, KSVPNUServerListOptionsSquareFlags = 1 << 2, } KSVPNUServerListOptions;