Extends: ass: KSVPNUFacade
Declared in: KSVPNUFacade.h
- (void)enableOnDemand:(BOOL)enable completion:(void(^)(NSError *error))completion;
- (void)enableOnDemandForCellular:(BOOL)enable completion:(void (^)(NSError *error))completion;
- (void)removeProfileWithCompletion:(void(^)(NSError *error))completion;
- (void)setSSIDsToTrustedList:(NSArray<NSString *> *)list completion:(void (^)(NSError *error))completion;
- (void)startVPNTunnelWithServerItem:(VPNUServerItem *)serverItem protocol:(VPNUProtocol)protocol completion:(void(^)(NSError *error))completion;
This method returns after VPN tunnel connection process is started and does not signals about the actual success of the VPN connection. In order to obtain the connection status, use the status property.
- (void)stopVPNWithCompletion:(void(^)(NSError *error))completion;
This method returns after VPN tunnel disconnect process is started and does not signals about the actual success of the VPN connection. In order to obtain the connection status, use the connectionStatus property.