Class UiShowModalEntityMapper
Static entity mapper for converting between UI show modal parameter types.
Transforms UiShowModalParameters into UnityUiModalParameters with additional Unity-specific configuration.
Handles font size mapping, audio integration, theme sounds, and foundation view element factory assignment for modal presentation.
Inherited Members
Namespace: Serenity.Modal.InterfaceAdapters.EntityMappers
Assembly: Serenity.UnityModal.InterfaceAdapter.dll
Syntax
public static class UiShowModalEntityMapper
Methods
ToUiModalParameters(UiShowModalParameters, float, IFoundationViewElementFactory, string, IUiThemeSounds)
Converts UiShowModalParameters to UnityUiModalParameters with Unity-specific configuration.
Maps modal properties including ID, title, text, alignment, and integrates font sizing, audio services, and theme sounds.
Creates Unity-compatible modal parameters with proper component initialization and foundation integration.
Declaration
public static UiModalParameters ToUiModalParameters(UiShowModalParameters input, float textFontSize, IFoundationViewElementFactory foundationViewElementFactory, string audioServiceId, IUiThemeSounds uiThemeSounds)
Parameters
| Type | Name | Description |
|---|---|---|
| UiShowModalParameters | input | The source UiShowModalParameters to convert. |
| float | textFontSize | Font size for the modal body text. |
| IFoundationViewElementFactory | foundationViewElementFactory | Factory for creating view elements. |
| string | audioServiceId | ID of the audio service to use for modal sounds. |
| IUiThemeSounds | uiThemeSounds | Theme sounds configuration for modal audio feedback. |
Returns
| Type | Description |
|---|---|
| UiModalParameters | Configured UnityUiModalParameters instance ready for Unity modal system. |