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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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 regarding nonce loading.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two callback methods: one for successful nonce manager loading (\u003ccode\u003enonceLoader:withRequest:didLoadNonceManager:\u003c/code\u003e) and one for loading failures (\u003ccode\u003enonceLoader:withRequest:didFailWithError:\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eUpon successful loading, the delegate receives a \u003ccode\u003ePALNonceManager\u003c/code\u003e instance containing a nonce for a single content stream.\u003c/p\u003e\n"],["\u003cp\u003eIf loading fails or times out, the delegate is notified with an error object describing the reason for failure.\u003c/p\u003e\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. |"]]