// // OpenVPNAdapter+Provider.h // OpenVPN iOS Client // // Created by Sergey Abramchuk on 11.02.17. // // #import "OpenVPNEvent.h" #import "OpenVPNAdapter.h" @class NEPacketTunnelFlow; @class NEPacketTunnelNetworkSettings; @protocol OpenVPNAdapterDelegate - (void)setTunnelSettings:(nonnull NEPacketTunnelNetworkSettings *)settings callback:(nonnull void (^)(NEPacketTunnelFlow * __nullable flow))callback NS_SWIFT_NAME(setTunnel(settings:callback:)); - (void)handleEvent:(OpenVPNEvent)event message:(nullable NSString *)message NS_SWIFT_NAME(handle(event:message:)); - (void)handleError:(nonnull NSError *)error NS_SWIFT_NAME(handle(error:)); @end @interface OpenVPNAdapter (Provider) @property (weak, nonatomic, null_unspecified) id delegate; @end