Interface IUiViewFactory
Factory interface for creating UI views.
Namespace: Serenity.Ui.Application.Interfaces.Components.Factories
Assembly: Serenity.Ui.Application.dll
Syntax
public interface IUiViewFactory
Methods
CreateView(object, UiUseCases, IViewModel, IFoundationSettings, string, IUiThemeDefinition)
Creates a UI view with the specified parameters.
Declaration
IViewBase CreateView(object canvas, UiUseCases useCases, IViewModel viewModel, IFoundationSettings settings, string audioServiceId, IUiThemeDefinition theme)
Parameters
| Type | Name | Description |
|---|---|---|
| object | canvas | The canvas object (e.g., a Canvas component in Unity) where the view will be rendered. |
| UiUseCases | useCases | The use cases defining the functionality of the view. |
| IViewModel | viewModel | The view model associated with the UI view. |
| IFoundationSettings | settings | The foundation settings for configuring the view. |
| string | audioServiceId | The identifier for the audio service to be used by the view. |
| IUiThemeDefinition | theme | The UI theme definition for styling the view. |
Returns
| Type | Description |
|---|---|
| IViewBase | An instance of IViewBase. |