/** * @since Available in iOS 8.0 and later. */ public NEEvaluateConnectionRule(@org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List<String> domains, NEEvaluateConnectionRuleAction action) { super((SkipInit) null); initObject(init(domains, action)); } /*</constructors>*/
public static /*<name>*/NEVPNIKEv2DiffieHellmanGroup/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEv2DiffieHellmanGroup/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEv2DiffieHellmanGroup/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNIKEv2DeadPeerDetectionRate/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEv2DeadPeerDetectionRate/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEv2DeadPeerDetectionRate/*</name>*/.class.getName()); } }
public static /*<name>*/NEOnDemandRuleInterfaceType/*</name>*/ valueOf(long n) { for (/*<name>*/NEOnDemandRuleInterfaceType/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEOnDemandRuleInterfaceType/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNErrorCode/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNErrorCode/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNErrorCode/*</name>*/.class.getName()); } }
public static /*<name>*/NEEvaluateConnectionRuleAction/*</name>*/ valueOf(long n) { for (/*<name>*/NEEvaluateConnectionRuleAction/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEEvaluateConnectionRuleAction/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNIKEv2EncryptionAlgorithm/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEv2EncryptionAlgorithm/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEv2EncryptionAlgorithm/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNIKEAuthenticationMethod/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEAuthenticationMethod/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEAuthenticationMethod/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNIKEv2IntegrityAlgorithm/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEv2IntegrityAlgorithm/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEv2IntegrityAlgorithm/*</name>*/.class.getName()); } }
public static /*<name>*/NEOnDemandRuleAction/*</name>*/ valueOf(long n) { for (/*<name>*/NEOnDemandRuleAction/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEOnDemandRuleAction/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNIKEv2CertificateType/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNIKEv2CertificateType/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNIKEv2CertificateType/*</name>*/.class.getName()); } }
public static /*<name>*/NEVPNStatus/*</name>*/ valueOf(long n) { for (/*<name>*/NEVPNStatus/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NEVPNStatus/*</name>*/.class.getName()); } }
/** * @since Available in iOS 8.0 and later. */ public static NSObject observeConfigurationChange(final Runnable block) { return NSNotificationCenter.getDefaultCenter().addObserver(ConfigurationChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification a) { block.run(); } }); } }
/** * @since Available in iOS 8.0 and later. */ public static NSObject overseStatusDidChange(NEVPNConnection object, final VoidBlock1<NEVPNConnection> block) { return NSNotificationCenter.getDefaultCenter().addObserver(StatusDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification a) { block.invoke((NEVPNConnection)a.getObject()); } }); } }
/** * @since Available in iOS 8.0 and later. */ public boolean startVPNTunnel() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = startVPNTunnel(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**