Configures the app config, setting up necessary resolution information. This method is called by the framework to initialize the config with device-specific settings.
Returns the active BCP-47 language tag.
Returns the physical reading direction resolved for the active locale.
Returns the generation of the resolved style currently cached at key.
A newly resolved style receives a new generation even when a targeted
invalidation does not advance the global layout revision.
Monotonic epoch bumped whenever resolved styles or constraint layout validity may change
(setConfig, set, resetCache). Included in fragment constraint layout cache keys.
Invalidates cached resolved styles for a branch and its descendants without clearing unrelated resolved-style cache entries.
Indicates whether setConfig(...) has been called with app configuration data.
Clears resolved-style cache and process-local fragment constraint layout cache
(clearFragmentConstraintLayoutCache from FragmentConstraintLayoutCache.ts), so constraint replay keys cannot outlive style reloads.
Resolves the configuration for a given row, applying any overrides.
The row for which to resolve the configuration.
Sets a single configuration entry in the registry, with an option to merge with existing configurations.
The unique identifier for the configuration.
The configuration data to be set.
Optionalmerge: booleanIf true, merges with an existing configuration.
Sets the initial JSON with all configuration, clearing any cached configurations.
The JSON containing all configuration.
Sets the current language/locale for translations.
The language code to set.
OptionalsectionKey: stringThe section key for translations (optional).
Subscribes to successful locale changes and returns a removable subscription id.
Gets a translation for the given key.
The translation key.
The translated string.
Removes a locale-change subscription.
Updates a single branch inside the configuration tree and invalidates cached resolved styles for that branch only.
Optionaloptions: { invalidateCache?: boolean; merge?: boolean }
The
IAppConfiginterface provides access to application configuration data loaded fromapp.config.jsonfiles. These configuration files are used by Hosanna UI apps to control styling, text, services, and behavior settings. Configurations can be loaded from local files or remote services, allowing for dynamic app customization and theming without requiring code changes.The interface supports:
${data.key}syntax