Interface IModalController<TAction, TContext>
Interface for a modal controller handling UI modals.
Namespace: Serenity.Modal.Application.Interfaces.Controllers
Assembly: Serenity.Modal.Application.dll
Syntax
public interface IModalController<TAction, TContext> : IUiController<TAction, TContext>, IController, IFoundationSettings where TAction : IDisposable
Type Parameters
| Name | Description |
|---|---|
| TAction | |
| TContext |
Remarks
Extends the IUiController<TAction, TContext> interface.
Methods
Initialize(float, int, float, IModalService, object, object)
Initializes the modal controller with the specified parameters.
Declaration
void Initialize(float changeInterval, int consecutiveChangesBeforeSpeedUp, float fastChangeInterval, IModalService modalService, object timer, object playerInput)
Parameters
| Type | Name | Description |
|---|---|---|
| float | changeInterval | The interval between input changes. |
| int | consecutiveChangesBeforeSpeedUp | The number of consecutive changes before speeding up. |
| float | fastChangeInterval | The interval for fast input changes. |
| IModalService | modalService | The modal service instance. |
| object | timer | The timer object for managing time-based events. |
| object | playerInput | The player input object. |