Type Method

unregisterClass(_:)

Unregisters the specified subclass of URLProtocol.

Declaration

class func unregisterClass(_ protocolClass: AnyClass)

Parameters

protocolClass

The subclass of URLProtocol to unregister.

Discussion

After this method is invoked, protocolClass is no longer consulted by the URL loading system.

See Also

Registering and Unregistering Protocol Classes

class func registerClass(AnyClass) -> Bool

Attempts to register a subclass of URLProtocol, making it visible to the URL loading system.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software