AI-generated Key Takeaways
-
PALNonceLoaderDelegate is a delegate object used to receive updates from PALNonceLoader.
-
The
-nonceLoader:withRequest:didLoadNonceManager:method is called when a PALNonceManager is successfully loaded. -
The
-nonceLoader:withRequest:didFailWithError:method is called when there is an error loading the PALNonceManager or if loading times out.
PALNonceLoaderDelegate
@protocol PALNonceLoaderDelegate <NSObject>Delegate object used to receive updates from PALNonceLoader.
-
Called when a
PALNonceManageris successfully loaded.Declaration
Swift
func nonceLoader(_ nonceLoader: NonceLoader, with request: PALNonceRequest, didLoad nonceManager: PALNonceManager)Objective-C
- (void)nonceLoader:(nonnull PALNonceLoader *)nonceLoader withRequest:(nonnull PALNonceRequest *)request didLoadNonceManager:(nonnull PALNonceManager *)nonceManager;Parameters
nonceLoaderThe PALNonceLoader from which loading was requested.
requestThe PALNonceRequest used to request the nonce manager.
nonceManagerA new PALNonceManager that contains a nonce for a single content stream.
-
Called when there was an error loading the
PALNonceManager, or if loading timed out.Declaration
Swift
func nonceLoader(_ nonceLoader: NonceLoader, with request: PALNonceRequest, didFailWith error: any Error)Objective-C
- (void)nonceLoader:(nonnull PALNonceLoader *)nonceLoader withRequest:(nonnull PALNonceRequest *)request didFailWithError:(nonnull NSError *)error;Parameters
nonceLoaderThe
PALNonceLoaderfrom which loading was requested.requestThe
PALNonceRequestused to request the nonce manager.errorAn error describing the failure.