Package com.pubmatic.sdk.common.cache
Class POBSdkConfigHelper
-
- All Implemented Interfaces:
public final class POBSdkConfigHelperLoads remote SDK config from POBCommonConstants.SDK_CONFIG_URL and caches the parsed
appInstallStatus.androidpayload used by the SDK. Call loadSDKConfig from SDK init (or when an explicit refresh is desired). getAppStatusSchemes returns the cache only and does not hit the network.
-
-
Constructor Summary
Constructors Constructor Description POBSdkConfigHelper(POBNetworkHandler networkHandler)
-
Method Summary
Modifier and Type Method Description final UnitloadSDKConfig()Issues a GET to POBCommonConstants.SDK_CONFIG_URL when allowed (no overlapping request, expiry elapsed). final JSONObjectgetAppStatusSchemes()Returns the last successfully cached Android schemes object (may be null). -
-
Constructor Detail
-
POBSdkConfigHelper
POBSdkConfigHelper(POBNetworkHandler networkHandler)
-
-
Method Detail
-
loadSDKConfig
final Unit loadSDKConfig()
Issues a GET to POBCommonConstants.SDK_CONFIG_URL when allowed (no overlapping request, expiry elapsed).
-
getAppStatusSchemes
final JSONObject getAppStatusSchemes()
Returns the last successfully cached Android schemes object (may be null). Does not start a load; use loadSDKConfig for that.
-
-
-
-