Table of Contents

Method Resolve

Namespace
Titipi.MocaLib2

Resolve<T>(T, string)

Returns a runtime copy of baseConfig with any Remote Config override applied. The original asset is never mutated — a clone is returned — so shared config assets stay pristine even when callers set runtime-only fields (e.g. AppLovinModuleConfig.UserId) on the result.

public static T Resolve<T>(T baseConfig, string keyOverride = null) where T : MocaLib2ModuleConfig

Parameters

baseConfig T

The serialized config asset used as defaults. Returns null if this is null.

keyOverride string

Optional Remote Config key to use instead of RemoteConfigKey. Lets a caller select a variant (device tier, region, A/B bucket, …) without the library knowing what it means — e.g. ConfigModule.Resolve(cfg, UtilityModule.IsLowEndDevice ? "admob_config_lowend" : null). When null or empty, the config's own RemoteConfigKey is used.

Returns

T

Type Parameters

T

The concrete config type.