CLUURLProtocolConfiguration
@interface CLUURLProtocolConfiguration : NSObject
CLUURLProtocolConfiguration is a singleton class which keeps custom network configuration (like CLUNetworkObserverDelegate delegate)
Used for additional configuration of CLUURLProtocol which intercepting all network communication.
-
Delegate instance of
CLUNetworkObserverDelegateto be able to redirect network communication fromCLUURLProtocolto appropriate delegate methodDeclaration
Objective-C
@property (readonly, getter=networkDelegate, strong, nonatomic) id<CLUNetworkObserverDelegate> delegate;Swift
var delegate: Any! { get } -
Returns the shared singleton instance of
CLUURLProtocolConfigurationDeclaration
Objective-C
+ (instancetype)sharedConfiguration;Swift
class func shared() -> Self!Return Value
Shared singleton instance of
CLUURLProtocolConfiguration -
Set
CLUNetworkObserverDelegatedelegate objectWarning
Always call
-removeNetworkObserverDelegatewhen you don’t need network delegate anymoreDeclaration
Objective-C
- (void)setNetworkObserverDelegate:(id<CLUNetworkObserverDelegate>)delegate;Swift
func setNetworkObserverDelegate(_ delegate: Any!)Parameters
delegateDelegate instance of
CLUNetworkObserverDelegateto be able to redirect network communication fromCLUURLProtocolto appropriate delegate method -
Remove
CLUNetworkObserverDelegatedelegate objectDeclaration
Objective-C
- (void)removeNetworkObserverDelegate;Swift
func removeNetworkObserverDelegate()
CLUURLProtocolConfiguration Class Reference