public class POBCacheManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
POBCacheManager.POBPartnerConfigListener
Class to get the callback method for success and failure of the partner config loading.
|
protected static class |
POBCacheManager.POBProfileConfigListener
Class to get the callback method for success and failure of the partner config loading.
|
| Constructor and Description |
|---|
POBCacheManager(android.content.Context context,
POBNetworkHandler networkHandler)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
requestPartnerConfiguration(java.lang.String publisherId,
int profileId,
java.lang.Integer versionId,
java.lang.String adunitId,
POBAdSize[] adsizes,
POBCacheManager.POBPartnerConfigListener completionListener)
Fetches the configuration for required profile from CDN and caches it.
|
void |
requestServiceScript(java.lang.String url,
POBMeasurementProvider.POBScriptListener listener) |
public POBCacheManager(@NonNull
android.content.Context context,
@NonNull
POBNetworkHandler networkHandler)
context - Contextpublic void requestServiceScript(@NonNull
java.lang.String url,
@NonNull
POBMeasurementProvider.POBScriptListener listener)
public void requestPartnerConfiguration(@NonNull
java.lang.String publisherId,
int profileId,
@Nullable
java.lang.Integer versionId,
java.lang.String adunitId,
POBAdSize[] adsizes,
@NonNull
POBCacheManager.POBPartnerConfigListener completionListener)
publisherId - Publisher IdprofileId - profileId for which we require configurationversionId - version of profileadunitId - Ad unit IDadsizes - Ad sizescompletionListener - Completion listener to get profile setting for requested profile id
and error details if it fails to fetch profile details.