Interface IPrimaryInputPromptViewFactory
Factory interface for creating primary input prompt views.
Namespace: Serenity.Ui.Application.Interfaces.Components.Factories
Assembly: Serenity.Ui.Application.dll
Syntax
public interface IPrimaryInputPromptViewFactory
Methods
CreateView(object, IFoundationSettings, string, IUiThemeDefinition, IPlayerInputService, IViewModel)
Creates a primary input prompt view with the specified parameters.
Declaration
IPrimaryInputPromptView CreateView(object canvas, IFoundationSettings settings, string audioServiceId, IUiThemeDefinition theme, IPlayerInputService playerInputService, IViewModel viewModel)
Parameters
| Type | Name | Description |
|---|---|---|
| object | canvas | The canvas object (e.g., a Canvas component in Unity) where the view will be rendered. |
| 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. |
| IPlayerInputService | playerInputService | The player input service for handling input prompts. |
| IViewModel | viewModel | The view model associated with the primary input prompt view. |
Returns
| Type | Description |
|---|---|
| IPrimaryInputPromptView | An instance of IPrimaryInputPromptView. |