ProgrammaticAccessLibrary Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
PALNonceLoaderDelegate
@protocol PALNonceLoaderDelegate <NSObject>
Delegate object used to receive updates from PALNonceLoader
.
-
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: any Error)
Objective-C
- (void)nonceLoader:(nonnull PALNonceLoader *)nonceLoader
withRequest:(nonnull PALNonceRequest *)request
didFailWithError:(nonnull NSError *)error;
Parameters
nonceLoader
|
|
request
|
|
error
|
An error describing the failure.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003ePALNonceLoaderDelegate\u003c/code\u003e is a protocol used to receive updates from \u003ccode\u003ePALNonceLoader\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt informs the delegate when a \u003ccode\u003ePALNonceManager\u003c/code\u003e has been successfully loaded, providing the nonce manager, nonce loader, and the original request.\u003c/p\u003e\n"],["\u003cp\u003eIt also notifies the delegate if there's an error during the loading of \u003ccode\u003ePALNonceManager\u003c/code\u003e, providing the error, nonce loader, and original request.\u003c/p\u003e\n"]]],["The `PALNonceLoaderDelegate` protocol provides updates from a `PALNonceLoader`. It has two key methods: one is invoked upon successful loading of a `PALNonceManager`, passing the loader, request, and the new nonce manager, which holds a nonce for a content stream. The other is called when loading fails, providing the loader, the failed request, and an error object detailing the failure. Both functions are in charge of informing the request status.\n"],null,["# ProgrammaticAccessLibrary Framework Reference\n\nPALNonceLoaderDelegate\n======================\n\n @protocol PALNonceLoaderDelegate \u003cNSObject\u003e\n\nDelegate object used to receive updates from [PALNonceLoader](../Classes/PALNonceLoader.html).\n- `\n ``\n ``\n `\n\n ### [-nonceLoader:withRequest:didLoadNonceManager:](#/c:objc(pl)PALNonceLoaderDelegate(im)nonceLoader:withRequest:didLoadNonceManager:)\n\n `\n ` \n Called when a [PALNonceManager](../Classes/PALNonceManager.html) is successfully loaded. \n\n #### Declaration\n\n Swift \n\n func nonceLoader(_ nonceLoader: NonceLoader, with request: ../Classes/PALNonceRequest.html, didLoad nonceManager: ../Classes/PALNonceManager.html)\n\n Objective-C \n\n - (void)nonceLoader:(nonnull ../Classes/PALNonceLoader.html *)nonceLoader\n withRequest:(nonnull ../Classes/PALNonceRequest.html *)request\n didLoadNonceManager:(nonnull ../Classes/PALNonceManager.html *)nonceManager;\n\n #### Parameters\n\n |----------------------|--------------------------------------------------------------------------|\n | ` `*nonceLoader*` ` | The PALNonceLoader from which loading was requested. |\n | ` `*request*` ` | The PALNonceRequest used to request the nonce manager. |\n | ` `*nonceManager*` ` | A new PALNonceManager that contains a nonce for a single content stream. |\n\n- `\n ``\n ``\n `\n\n ### [-nonceLoader:withRequest:didFailWithError:](#/c:objc(pl)PALNonceLoaderDelegate(im)nonceLoader:withRequest:didFailWithError:)\n\n `\n ` \n Called when there was an error loading the [PALNonceManager](../Classes/PALNonceManager.html), or if loading timed out. \n\n #### Declaration\n\n Swift \n\n func nonceLoader(_ nonceLoader: NonceLoader, with request: ../Classes/PALNonceRequest.html, didFailWith error: any Error)\n\n Objective-C \n\n - (void)nonceLoader:(nonnull ../Classes/PALNonceLoader.html *)nonceLoader\n withRequest:(nonnull ../Classes/PALNonceRequest.html *)request\n didFailWithError:(nonnull NSError *)error;\n\n #### Parameters\n\n |---------------------|-------------------------------------------------------------------------------------------|\n | ` `*nonceLoader*` ` | The [PALNonceLoader](../Classes/PALNonceLoader.html) from which loading was requested. |\n | ` `*request*` ` | The [PALNonceRequest](../Classes/PALNonceRequest.html) used to request the nonce manager. |\n | ` `*error*` ` | An error describing the failure. |"]]