PALNonceLoaderDelegate
@protocol PALNonceLoaderDelegate <NSObject>
Delegate object used to receive updates from PALNonceLoader
.
-
Called when a
PALNonceManager
is 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
nonceLoader
The PALNonceLoader from which loading was requested.
request
The PALNonceRequest used to request the nonce manager.
nonceManager
A 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: Error)
Objective-C
- (void)nonceLoader:(nonnull PALNonceLoader *)nonceLoader withRequest:(nonnull PALNonceRequest *)request didFailWithError:(nonnull NSError *)error;
Parameters
nonceLoader
The
PALNonceLoader
from which loading was requested.request
The
PALNonceRequest
used to request the nonce manager.error
An error describing the failure.