AI-generated Key Takeaways
- 
          PALNonceLoader allows publishers to create a PALNonceManager for a single content stream. 
- 
          The instance's methods and properties are not thread-safe. 
- 
          To use, create a PALNonceLoader and a PALNonceRequest, then call loadNonceManagerWithRequest to get a new PALNonceManager containing the nonce for ad requests for a single content stream. 
- 
          For subsequent content streams, create a new PALNonceRequest but reuse the same PALNonceLoader. 
- 
          PALNonceLoader has initializers, a property for the SDK version, a delegate property, and a method to asynchronously load a PALNonceManager with a given request. 
PALNonceLoader
@interface PALNonceLoader : NSObjectAllows publishers to create a PALNonceManager for a single content stream.
This instance’s methods and properties are not thread safe. Usage:
- Create a new PALNonceLoader.
- Create a new PALNonceRequestand populate its properties.
- Call loadNonceManagerWithRequest: to get a newPALNonceManager, which will contain the nonce to use for ad requests for a single content stream.
- For subsequent content streams, create a new PALNonceRequestbut reuse the samePALNonceLoader.
- 
                  
                  Initializes the nonce loader with default settings. DeclarationSwift init()Objective-C - (nonnull instancetype)init;
- 
                  
                  Initializes the nonce loader DeclarationSwift init(settings: PALSettings)Objective-C - (nonnull instancetype)initWithSettings:(nonnull PALSettings *)settings;ParameterssettingsThe settings used by this loader. 
- 
                  
                  Initializes the nonce loader, providing Google Ad Manager settings. This is only required if the settings for the Ad Manager network to which the nonce will be sent have been updated from the default. See {@link PALGoogleAdManagerSettings} for which settings can be updated. DeclarationSwift init(settings: PALSettings, googleAdManagerSettings: PALGoogleAdManagerSettings)Objective-C - (nonnull instancetype)initWithSettings:(nonnull PALSettings *)settings googleAdManagerSettings:(nonnull PALGoogleAdManagerSettings *) googleAdManagerSettings;
- 
                  
                  The version of this SDK in major.minor.patch format, or “(null)” when unavailable. DeclarationSwift var sdkVersion: String { get }Objective-C @property (nonatomic, readonly, nonnull) NSString *SDKVersion;
- 
                  
                  The object receiving PALNonceLoaderDelegatecallbacks for this instance.DeclarationSwift weak var delegate: (any NonceLoaderDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<PALNonceLoaderDelegate> delegate;
- 
                  
                  Asynchronously loads a PALNonceManagerusing the information in the given request, informing the delegate of success or failure.Multiple concurrent requests are supported. DeclarationSwift func loadNonceManager(with request: PALNonceRequest)Objective-C - (void)loadNonceManagerWithRequest:(nonnull PALNonceRequest *)request;ParametersrequestThe request containing information about the context in which the nonce will be used.