public class POBCacheManager
extends java.lang.Object
| Constructor and Description |
|---|
POBCacheManager(android.content.Context context,
POBNetworkHandler networkHandler)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
POBProfileInfo |
getProfileInfo(java.lang.String profileInfoKey)
Function is used to return the cached profileInfo associated with the profileInfoKey
|
void |
loadInternalServiceJS(POBMeasurementProvider.POBScriptListener listener)
Loads the local omid.js from the assets and stores it inside OMID_JS_CONTENT,
function uses loadLocalOmidScript internally to load the omid.js script
|
void |
loadLocalOmidScript(POBMeasurementProvider.POBScriptListener listener)
Function is used to read omid.js script from the assets folder and store it into omidJsContent
and give callback on success of it.
|
void |
requestProfileConfiguration(java.lang.String publisherId,
int profileId,
java.lang.Integer versionId)
Fetches the configuration for required profile from CDN and caches it.
|
public POBCacheManager(@NonNull
android.content.Context context,
@NonNull
POBNetworkHandler networkHandler)
context - Contextpublic void loadInternalServiceJS(@NonNull
POBMeasurementProvider.POBScriptListener listener)
listener - Instance of POBMeasurementProvider.POBScriptListener which is used to give scriptReceived callbackpublic void loadLocalOmidScript(@Nullable
POBMeasurementProvider.POBScriptListener listener)
listener - Instance of POBMeasurementProvider.POBScriptListener for giving the
callback on the success of the loading of the omidJSScriptpublic void requestProfileConfiguration(@NonNull
java.lang.String publisherId,
int profileId,
@Nullable
java.lang.Integer versionId)
publisherId - Publisher IdprofileId - profileId for which we require configurationversionId - version of profile@Nullable public POBProfileInfo getProfileInfo(@NonNull java.lang.String profileInfoKey)
profileInfoKey - The profileInfo key associated with the profile and the versionPOBProfileInfo associated with the profileInfoKey