AdServiceProvider

Provider for creating and configuring AdService.

This class stores the AdService instance, so if you want to destroy AdService over time and create a new one, you also need to create a new AdServiceProvider.

You can also use AdServiceProviderInterface in your application as an interface for this class.

See also

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val isConfigured: Boolean

Indicates whether the AdService has been created and configured.

Functions

Link copied to clipboard
open suspend override fun configure(networkId: String, parentCoroutineScope: CoroutineScope, configurationTimeout: UInt, cacheSize: UShort, globalParameters: GlobalParameters, adRequestGlobalParameters: AdRequestGlobalParameters): AdResult<Unit>

Create and configure AdService with the passed parameters.

Link copied to clipboard
open override fun get(): AdResult<AdService>

Method for getting a configured AdService.