Class NEVPNConnection
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.networkextension.NEVPNConnection
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
NETunnelProviderSession
public class NEVPNConnection extends NSObject
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NEVPNConnection.NEVPNConnectionPtr
static class
NEVPNConnection.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NEVPNConnection()
protected
NEVPNConnection(NSObject.Handle h, long handle)
protected
NEVPNConnection(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSDate
getConnectedDate()
NEVPNManager
getManager()
NEVPNStatus
getStatus()
static java.lang.String
NEVPNConnectionStartOptionPassword()
static java.lang.String
NEVPNConnectionStartOptionUsername()
boolean
startVPNTunnel()
boolean
startVPNTunnel(NSDictionary<NSString,?> options)
static NSString
StatusDidChangeNotification()
void
stopVPNTunnel()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NEVPNConnection
public NEVPNConnection()
-
NEVPNConnection
protected NEVPNConnection(NSObject.Handle h, long handle)
-
NEVPNConnection
protected NEVPNConnection(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getStatus
public NEVPNStatus getStatus()
- Since:
- Available in iOS 8.0 and later.
-
getConnectedDate
public NSDate getConnectedDate()
- Since:
- Available in iOS 9.0 and later.
-
getManager
public NEVPNManager getManager()
- Since:
- Available in iOS 10.0 and later.
-
StatusDidChangeNotification
public static NSString StatusDidChangeNotification()
- Since:
- Available in iOS 8.0 and later.
-
NEVPNConnectionStartOptionUsername
public static java.lang.String NEVPNConnectionStartOptionUsername()
- Since:
- Available in iOS 9.0 and later.
-
NEVPNConnectionStartOptionPassword
public static java.lang.String NEVPNConnectionStartOptionPassword()
- Since:
- Available in iOS 9.0 and later.
-
startVPNTunnel
public boolean startVPNTunnel() throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 8.0 and later.
-
startVPNTunnel
public boolean startVPNTunnel(NSDictionary<NSString,?> options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 9.0 and later.
-
stopVPNTunnel
public void stopVPNTunnel()
- Since:
- Available in iOS 8.0 and later.
-
-