Class NEFilterProvider

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    NEFilterControlProvider, NEFilterDataProvider

    public class NEFilterProvider
    extends NEProvider
    [@interface] NEFilterProvider The NEFilterProvider class is an abstract base class that declares the programmatic interface of an object that implements a socket filter. NEFilterProvider is part of NetworkExtension.framework
    • Constructor Detail

      • NEFilterProvider

        protected NEFilterProvider​(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()
      • 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)
      • isSubclassOfClass

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

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

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

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • filterConfiguration

        public NEFilterProviderConfiguration filterConfiguration()
        [@property] filterConfiguration An NEContentFilterConfiguration object containing the current filter configuration. The value of this property can change during the lifetime of a filter. Filter implementations can use KVO to be notified when the configuration changes.
      • startFilterWithCompletionHandler

        public void startFilterWithCompletionHandler​(NEFilterProvider.Block_startFilterWithCompletionHandler completionHandler)
        startFilterWithCompletionHandler: This function is called by the framework when the content filter is being started. Subclasses must override this method and perform whatever steps are necessary to start the filter.
        Parameters:
        completionHandler - A block that must be called when the process of starting the filter is complete. If the filter was started successfully, subclass implementations must pass the nil value to this block. If an error occurred while starting the filter, sublcass implementations must pass a non-nil NSError containing more details about the error.
      • stopFilterWithReasonCompletionHandler

        public void stopFilterWithReasonCompletionHandler​(long reason,
                                                          NEFilterProvider.Block_stopFilterWithReasonCompletionHandler completionHandler)
        stopFilterWithReason:completionHandler: This function is called by the framework when the content filter is being stopped. Subclasses must override this method and perform whatever steps are necessary to stop the filter.
        Parameters:
        reason - An NEProviderStopReason indicating why the filter is being stopped.
        completionHandler - A block that must be called when the process of stopping the filter is complete.
      • handleReport

        public void handleReport​(NEFilterReport report)
        handleReport: This function is called by the framework when the data provider extension returns a verdict with the report property set to True. Subclass implementations may override this method to handle the flow report.
        Parameters:
        report - The report being delivered.