NonceLoader

Stay organized with collections Save and categorize content based on your preferences.
public final class NonceLoader extends Object

Programmatic Access Library that collects signals for publishers who do not use the IMA SDK. When these signals are included on an ad request, it allows their request to access programmatic demand. The user should create single instance of the NonceLoader and call loadNonceManager() for each ad request or stream creation request. Users can gain performance improvements by instantiating the NonceLoader on app load. Minimum Android API version supported is 19.

Public Constructor Summary

NonceLoader(Context context, ConsentSettings consentSettings)
Construct a NonceLoader instance.

Public Method Summary

Task<NonceManager>
loadNonceManager(NonceRequest request)
Generates a programmatic access nonce for a given NonceRequest.
void
release()
Free any resources held by the PAL SDK.

Inherited Method Summary

Public Constructors

public NonceLoader (Context context, ConsentSettings consentSettings)

Construct a NonceLoader instance.

Public Methods

public Task<NonceManager> loadNonceManager (NonceRequest request)

Generates a programmatic access nonce for a given NonceRequest. This method will utilize background threads to avoid blocking the user.

public void release ()

Free any resources held by the PAL SDK.