-
- All Implemented Interfaces:
-
io.cloudx.sdk.CloudXDestroyable
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public abstract class CloudXAppOpenAdapter implements CloudXDestroyable
-
-
Field Summary
Fields Modifier and Type Field Description private final CloudXAdapterThreadRequirementloadThreadRequirementprivate final CloudXAdapterThreadRequirementshowThreadRequirement
-
Constructor Summary
Constructors Constructor Description CloudXAppOpenAdapter()
-
Method Summary
Modifier and Type Method Description CloudXAdapterThreadRequirementgetLoadThreadRequirement()Thread on which the SDK invokes load. CloudXAdapterThreadRequirementgetShowThreadRequirement()Thread on which the SDK invokes show. abstract Unitload(CloudXAdapterLoadParams params)abstract Unitshow(CloudXAdapterShowParams params)abstract BooleanisAdReady()-
-
Method Detail
-
getLoadThreadRequirement
CloudXAdapterThreadRequirement getLoadThreadRequirement()
Thread on which the SDK invokes load. Defaults to CloudXAdapterThreadRequirement.MAIN. Adapters whose underlying network load call performs blocking work should override with CloudXAdapterThreadRequirement.BACKGROUND: an app-open load runs at launch/foreground, so a blocking load on the main thread can stall the first frame. Load result callbacks are still marshalled back to the main thread by the SDK's wrapper, so publisher delivery is unaffected.
-
getShowThreadRequirement
CloudXAdapterThreadRequirement getShowThreadRequirement()
Thread on which the SDK invokes show. Defaults to CloudXAdapterThreadRequirement.MAIN because fullscreen presentation normally touches Android UI state.
-
load
abstract Unit load(CloudXAdapterLoadParams params)
-
show
abstract Unit show(CloudXAdapterShowParams params)
-
-
-
-