-
@Deprecated(message = Internal use only. Do not use.) public class CXDebugConfig
Internal configuration for testing/debugging. Not part of public API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCXDebugConfig.VastCertControlSurfaceDebug-only control surface for the OMID cert harness to drive in-app interactions that have no other programmatic trigger -- a CTA click (OMID
adUserInteraction) and a media mute toggle (OMIDvolumeChange). The active VAST fullscreen ad registers itself here in debug builds and clears it on destroy; production never sets or reads it.
-
Field Summary
Fields Modifier and Type Field Description private static CXInitServerinitServerprivate static BooleanforceTestModeprivate static StringpackageNameOverrideprivate static volatile StringsyntheticBidResponseAssetPathprivate static BooleanallowCleartextOmidVerificationprivate static CXDebugConfig.VastCertControlSurfacevastCertControlSurfaceprivate static List<Interceptor>debugHttpInterceptorspublic final static CXDebugConfigINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitdeinitialize()Deinitializes the SDK and releases all resources. final static CXInitServergetInitServer()Override the initialization server. final static UnitsetInitServer(@Deprecated(message = Internal use only. Do not use.) CXInitServer initServer)Override the initialization server. final static BooleangetForceTestMode()Request a server-resolved test mode override. final static UnitsetForceTestMode(@Deprecated(message = Internal use only. Do not use.) Boolean forceTestMode)Request a server-resolved test mode override. final static StringgetPackageNameOverride()Override the Android package name sent in config and bid requests. final static UnitsetPackageNameOverride(@Deprecated(message = Internal use only. Do not use.) String packageNameOverride)Override the Android package name sent in config and bid requests. final static StringgetSyntheticBidResponseAssetPath()Optional debug-only asset path for returning a bundled synthetic bid response instead of hitting the network. final static UnitsetSyntheticBidResponseAssetPath(@Deprecated(message = Internal use only. Do not use.) String syntheticBidResponseAssetPath)Optional debug-only asset path for returning a bundled synthetic bid response instead of hitting the network. final static BooleangetAllowCleartextOmidVerification()Debug-only: permit a non-HTTPS OMID <AdVerifications>resource (e.g.final static UnitsetAllowCleartextOmidVerification(@Deprecated(message = Internal use only. Do not use.) Boolean allowCleartextOmidVerification)Debug-only: permit a non-HTTPS OMID <AdVerifications>resource (e.g.final static CXDebugConfig.VastCertControlSurfacegetVastCertControlSurface()final static UnitsetVastCertControlSurface(@Deprecated(message = Internal use only. Do not use.) CXDebugConfig.VastCertControlSurface vastCertControlSurface)final static List<Interceptor>getDebugHttpInterceptors()Debug-only OkHttp interceptors installed on the shared SDK HTTP client. final static UnitsetDebugHttpInterceptors(@Deprecated(message = Internal use only. Do not use.) List<Interceptor> debugHttpInterceptors)Debug-only OkHttp interceptors installed on the shared SDK HTTP client. -
-
Method Detail
-
deinitialize
final static Unit deinitialize()
Deinitializes the SDK and releases all resources.
-
getInitServer
final static CXInitServer getInitServer()
Override the initialization server. Set before calling CloudX.initialize().
-
setInitServer
final static Unit setInitServer(@Deprecated(message = Internal use only. Do not use.) CXInitServer initServer)
Override the initialization server. Set before calling CloudX.initialize().
-
getForceTestMode
final static Boolean getForceTestMode()
Request a server-resolved test mode override. Set before calling CloudX.initialize().
This value is sent on the SDK init request as
forceTestMode. The server resolves it intodeviceConfig.test, and the SDK uses that returned server value for initialization.true: Request test mode onfalse: Request test mode offnull: Use server-controlled value (default)
-
setForceTestMode
final static Unit setForceTestMode(@Deprecated(message = Internal use only. Do not use.) Boolean forceTestMode)
Request a server-resolved test mode override. Set before calling CloudX.initialize().
This value is sent on the SDK init request as
forceTestMode. The server resolves it intodeviceConfig.test, and the SDK uses that returned server value for initialization.true: Request test mode onfalse: Request test mode offnull: Use server-controlled value (default)
-
getPackageNameOverride
final static String getPackageNameOverride()
Override the Android package name sent in config and bid requests. Set before calling CloudX.initialize().
non-null: Use this value instead of the actual package name
null: Use the actual package name (default)
-
setPackageNameOverride
final static Unit setPackageNameOverride(@Deprecated(message = Internal use only. Do not use.) String packageNameOverride)
Override the Android package name sent in config and bid requests. Set before calling CloudX.initialize().
non-null: Use this value instead of the actual package name
null: Use the actual package name (default)
-
getSyntheticBidResponseAssetPath
final static String getSyntheticBidResponseAssetPath()
Optional debug-only asset path for returning a bundled synthetic bid response instead of hitting the network. Intended for local renderer testing only.
non-null: Load the asset from the app's packaged assets in debug builds
null: Use normal network bid requests (default)
Volatile because the QA harness writes this on the main thread while the bid request reads it on kotlinx.coroutines.Dispatchers.IO -- a deliberately cross-thread debug flag.
-
setSyntheticBidResponseAssetPath
final static Unit setSyntheticBidResponseAssetPath(@Deprecated(message = Internal use only. Do not use.) String syntheticBidResponseAssetPath)
Optional debug-only asset path for returning a bundled synthetic bid response instead of hitting the network. Intended for local renderer testing only.
non-null: Load the asset from the app's packaged assets in debug builds
null: Use normal network bid requests (default)
Volatile because the QA harness writes this on the main thread while the bid request reads it on kotlinx.coroutines.Dispatchers.IO -- a deliberately cross-thread debug flag.
-
getAllowCleartextOmidVerification
final static Boolean getAllowCleartextOmidVerification()
Debug-only: permit a non-HTTPS OMID
<AdVerifications>resource (e.g. the IAB validation verification script served over cleartexthttp://localhost:6600by the OMID-cert harness). Honored only in debug builds and only for a loopback HTTP URL; release builds stay HTTPS-only regardless of this flag (the renderer gates the carve-out onBuildConfig.DEBUG).true: accept loopback-HTTP cleartext verification resources in debug builds (cert harness only)false: HTTPS-only (default; production behavior)
-
setAllowCleartextOmidVerification
final static Unit setAllowCleartextOmidVerification(@Deprecated(message = Internal use only. Do not use.) Boolean allowCleartextOmidVerification)
Debug-only: permit a non-HTTPS OMID
<AdVerifications>resource (e.g. the IAB validation verification script served over cleartexthttp://localhost:6600by the OMID-cert harness). Honored only in debug builds and only for a loopback HTTP URL; release builds stay HTTPS-only regardless of this flag (the renderer gates the carve-out onBuildConfig.DEBUG).true: accept loopback-HTTP cleartext verification resources in debug builds (cert harness only)false: HTTPS-only (default; production behavior)
-
getVastCertControlSurface
final static CXDebugConfig.VastCertControlSurface getVastCertControlSurface()
-
setVastCertControlSurface
final static Unit setVastCertControlSurface(@Deprecated(message = Internal use only. Do not use.) CXDebugConfig.VastCertControlSurface vastCertControlSurface)
-
getDebugHttpInterceptors
final static List<Interceptor> getDebugHttpInterceptors()
Debug-only OkHttp interceptors installed on the shared SDK HTTP client.
Set before CloudX.initialize(). Intended for QA harness wire-boundary capture only; release builds ignore this list.
-
setDebugHttpInterceptors
final static Unit setDebugHttpInterceptors(@Deprecated(message = Internal use only. Do not use.) List<Interceptor> debugHttpInterceptors)
Debug-only OkHttp interceptors installed on the shared SDK HTTP client.
Set before CloudX.initialize(). Intended for QA harness wire-boundary capture only; release builds ignore this list.
-
-
-
-