Method Resolve
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
baseConfigTThe serialized config asset used as defaults. Returns
nullif this isnull.keyOverridestringOptional 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). Whennullor empty, the config's own RemoteConfigKey is used.
Returns
- T
Type Parameters
TThe concrete config type.