Class NEAppProxyFlow

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    NEAppProxyTCPFlow, NEAppProxyUDPFlow

    public class NEAppProxyFlow
    extends NSObject
    [@interface] NEAppProxyFlow The NEAppProxyFlow class is an abstract base class that declares the programmatic interface for a flow of network data. NEAppProxyFlow is part of NetworkExtension.framework. Instances of this class are thread safe. API-Since: 9.0
    • Constructor Detail

      • NEAppProxyFlow

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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()
      • closeReadWithError

        public void closeReadWithError​(@Nullable
                                       @Nullable NSError error)
        closeReadWithError: This function is used by an NEProvider implementation to indicate that it does not want to receive any more data from the flow.
        Parameters:
        error - An error in NEAppProxyErrorDomain that should be passed to the flow's source application. API-Since: 9.0
      • closeWriteWithError

        public void closeWriteWithError​(@Nullable
                                        @Nullable NSError error)
        closeWriteWithError: This functions is used by an NEProvider implementation to indicate that it does not have any more data to write to the flow.
        Parameters:
        error - An error in NEAppProxyErrorDomain that should be passed to the flow's source application. API-Since: 9.0
      • metaData

        @NotNull
        public @NotNull NEFlowMetaData metaData()
        [@property] metaData An NEFlowMetaData object containing meta data for the flow. API-Since: 9.0
      • openWithLocalEndpointCompletionHandler

        public void openWithLocalEndpointCompletionHandler​(@Nullable
                                                           @Nullable NWHostEndpoint localEndpoint,
                                                           @NotNull
                                                           @NotNull NEAppProxyFlow.Block_openWithLocalEndpointCompletionHandler completionHandler)
        openWithLocalEndpoint:completionHandler: This function is used by an NEProvider implementation to indicate that it is ready to handle flow data.
        Parameters:
        localEndpoint - The address and port that should be used as the local endpoint of the socket associated with this flow. If the source application already specifed a local endpoint by binding the socket then this parameter is ignored.
        completionHandler - A block that is called when the process of opening flow is complete. A nil value passed to this block indicates that the flow was opened successfully. A non-nil NSError value indicates that the flow failed to open successfully. API-Since: 9.0
      • networkInterface

        @Nullable
        public @Nullable nw_interface_t networkInterface()
        [@property] networkInterface An nw_interface_t containing information about the network interface used by the flow. If the flow's data is transported using a different interface, this property should be set to that interface. API-Since: 13.4
      • setNetworkInterface

        public void setNetworkInterface​(@Nullable
                                        @Nullable nw_interface_t value)
        [@property] networkInterface An nw_interface_t containing information about the network interface used by the flow. If the flow's data is transported using a different interface, this property should be set to that interface. API-Since: 13.4
      • remoteHostname

        @Nullable
        public @Nullable java.lang.String remoteHostname()
        [@property] remoteHostname If the flow was created by passing a hostname to a "connect by name" API such as NSURLSession or Network.framework, this property is set to the remote hostname. API-Since: 14.2
      • isBound

        public boolean isBound()
        [@property] isBound YES if the flow was bound by the application to a specific interface (contained in the networkInterface property), NO otherwise. API-Since: 14.3
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.