Class NEDNSSettingsManager

  • All Implemented Interfaces:
    NSObject

    public class NEDNSSettingsManager
    extends NSObject
    [@interface] NEDNSSettingsManager The NEDNSSettingsManager class declares the programmatic interface for an object that manages DNS settings configurations. NEDNSSettingsManager declares methods and properties for configuring and controlling DNS settings on the system. Instances of this class are thread safe.
    • Constructor Detail

      • NEDNSSettingsManager

        protected NEDNSSettingsManager​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • dnsSettings

        public NEDNSSettings dnsSettings()
        [@property] dnsSettings An NEDNSSettings object containing the DNS resolver configuration to apply to the system.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isEnabled

        public boolean isEnabled()
        [@property] enabled Checks the enabled status of the DNS settings. DNS settings must be enabled by the user in Settings or System Preferences.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • loadFromPreferencesWithCompletionHandler

        public void loadFromPreferencesWithCompletionHandler​(NEDNSSettingsManager.Block_loadFromPreferencesWithCompletionHandler completionHandler)
        loadFromPreferencesWithCompletionHandler: This function loads the current DNS settings configuration from the caller's DNS settings preferences.
        Parameters:
        completionHandler - A block that will be called when the load operation is completed. The NSError passed to this block will be nil if the load operation succeeded, non-nil otherwise.
      • localizedDescription

        public java.lang.String localizedDescription()
        [@property] localizedDescription A string containing a description of the DNS settings.
      • new_objc

        public static java.lang.Object new_objc()
      • onDemandRules

        public NSArray<? extends NEOnDemandRule> onDemandRules()
        [@property] onDemandRules An array of NEOnDemandRule objects. If nil, the associated DNS settings will always apply. If non-nil, the array describes the networks on which the DNS configuration should take effect or not.
      • removeFromPreferencesWithCompletionHandler

        public void removeFromPreferencesWithCompletionHandler​(NEDNSSettingsManager.Block_removeFromPreferencesWithCompletionHandler completionHandler)
        removeFromPreferencesWithCompletionHandler: This function removes the DNS settings configuration from the caller's DNS settings preferences. If the DNS settings are enabled, the DNS settings becomes disabled.
        Parameters:
        completionHandler - A block that will be called when the remove operation is completed. The NSError passed to this block will be nil if the remove operation succeeded, non-nil otherwise.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • saveToPreferencesWithCompletionHandler

        public void saveToPreferencesWithCompletionHandler​(NEDNSSettingsManager.Block_saveToPreferencesWithCompletionHandler completionHandler)
        saveToPreferencesWithCompletionHandler: This function saves the DNS settingsconfiguration in the caller's DNS settings preferences. If the DNS settings are enabled, they will become active.
        Parameters:
        completionHandler - A block that will be called when the save operation is completed. The NSError passed to this block will be nil if the save operation succeeded, non-nil otherwise.
      • setDnsSettings

        public void setDnsSettings​(NEDNSSettings value)
        [@property] dnsSettings An NEDNSSettings object containing the DNS resolver configuration to apply to the system.
      • setLocalizedDescription

        public void setLocalizedDescription​(java.lang.String value)
        [@property] localizedDescription A string containing a description of the DNS settings.
      • setOnDemandRules

        public void setOnDemandRules​(NSArray<? extends NEOnDemandRule> value)
        [@property] onDemandRules An array of NEOnDemandRule objects. If nil, the associated DNS settings will always apply. If non-nil, the array describes the networks on which the DNS configuration should take effect or not.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sharedManager

        public static NEDNSSettingsManager sharedManager()
        sharedManager
        Returns:
        The singleton NEDNSSettingsManager object for the calling process.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()