public class NEVPNManager extends NSObject
The NEVPNManager class declares the programmatic interface for an object that manages Virtual Private Network (VPN) configurations.
NEVPNManager declares methods and properties for configuring and controlling a VPN.
Instances of this class are thread safe.
| Modifier and Type | Class and Description |
|---|---|
static interface |
NEVPNManager.Block_loadFromPreferencesWithCompletionHandler |
static interface |
NEVPNManager.Block_removeFromPreferencesWithCompletionHandler |
static interface |
NEVPNManager.Block_saveToPreferencesWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NEVPNManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NEVPNManager |
alloc() |
static NEVPNManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NEVPNConnection |
connection()
[@property] connection
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
NEVPNManager |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isEnabled()
[@property] enabled
|
boolean |
isOnDemandEnabled()
[@property] onDemandEnabled
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
loadFromPreferencesWithCompletionHandler(NEVPNManager.Block_loadFromPreferencesWithCompletionHandler completionHandler)
loadFromPreferencesWithCompletionHandler:
|
java.lang.String |
localizedDescription()
[@property] localizedDescription
|
static NEVPNManager |
new_objc() |
NSArray<? extends NEOnDemandRule> |
onDemandRules()
[@property] onDemandRules
|
NEVPNProtocol |
protocol()
Deprecated.
|
NEVPNProtocol |
protocolConfiguration()
[@property] protocolConfiguration
|
void |
removeFromPreferencesWithCompletionHandler(NEVPNManager.Block_removeFromPreferencesWithCompletionHandler completionHandler)
removeFromPreferencesWithCompletionHandler:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
saveToPreferencesWithCompletionHandler(NEVPNManager.Block_saveToPreferencesWithCompletionHandler completionHandler)
saveToPreferencesWithCompletionHandler:
|
void |
setEnabled(boolean value)
[@property] enabled
|
void |
setLocalizedDescription(java.lang.String value)
[@property] localizedDescription
|
void |
setOnDemandEnabled(boolean value)
[@property] onDemandEnabled
|
void |
setOnDemandRules(NSArray<? extends NEOnDemandRule> value)
[@property] onDemandRules
|
void |
setProtocol(NEVPNProtocol value)
Deprecated.
|
void |
setProtocolConfiguration(NEVPNProtocol value)
[@property] protocolConfiguration
|
static void |
setVersion_static(long aVersion) |
static NEVPNManager |
sharedManager()
sharedManager
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NEVPNManager alloc()
public static NEVPNManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NEVPNManager new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static NEVPNManager sharedManager()
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NEVPNConnection connection()
The NEVPNConnection object used for controlling the VPN tunnel.
public NEVPNManager init()
public boolean isEnabled()
Toggles the enabled status of the VPN. Setting this property will disable VPN configurations of other apps. This property will be set to NO when other VPN configurations are enabled.
public void setEnabled(boolean value)
Toggles the enabled status of the VPN. Setting this property will disable VPN configurations of other apps. This property will be set to NO when other VPN configurations are enabled.
public boolean isOnDemandEnabled()
Toggles VPN On Demand.
public void setOnDemandEnabled(boolean value)
Toggles VPN On Demand.
public void loadFromPreferencesWithCompletionHandler(NEVPNManager.Block_loadFromPreferencesWithCompletionHandler completionHandler)
This function loads the current VPN configuration from the caller's VPN preferences.
completionHandler - A block that will be called on the main thread when the load operation is completed. The NSError passed to this block will be nil if the load operation succeeded, non-nil otherwise.public java.lang.String localizedDescription()
A string containing a description of the VPN.
public NSArray<? extends NEOnDemandRule> onDemandRules()
An array of NEOnDemandRule objects.
@Deprecated public NEVPNProtocol protocol()
An NEVPNProtocol object containing the protocol-specific portion of the VPN configuration.
public NEVPNProtocol protocolConfiguration()
An NEVPNProtocol object containing the protocol-specific portion of the VPN configuration.
public void removeFromPreferencesWithCompletionHandler(NEVPNManager.Block_removeFromPreferencesWithCompletionHandler completionHandler)
This function removes the VPN configuration from the caller's VPN preferences. If the VPN is enabled, has VPN On Demand enabled, and has VPN On Demand rules, the VPN is disabled and the VPN On Demand rules are de-activated.
completionHandler - A block that will be called on the main thread when the remove operation is completed. The NSError passed to this block will be nil if the remove operation succeeded, non-nil otherwise.public void saveToPreferencesWithCompletionHandler(NEVPNManager.Block_saveToPreferencesWithCompletionHandler completionHandler)
This function saves the VPN configuration in the caller's VPN preferences. If the VPN is enabled, has VPN On Demand enabled, and has VPN On Demand rules, the VPN On Demand rules are activated.
completionHandler - A block that will be called on the main thread when the save operation is completed. The NSError passed to this block will be nil if the save operation succeeded, non-nil otherwise.public void setLocalizedDescription(java.lang.String value)
A string containing a description of the VPN.
public void setOnDemandRules(NSArray<? extends NEOnDemandRule> value)
An array of NEOnDemandRule objects.
@Deprecated public void setProtocol(NEVPNProtocol value)
An NEVPNProtocol object containing the protocol-specific portion of the VPN configuration.
public void setProtocolConfiguration(NEVPNProtocol value)
An NEVPNProtocol object containing the protocol-specific portion of the VPN configuration.