logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IModalServiceFactory

    Factory interface for creating modal services.

    Namespace: Serenity.Modal.Application.Interfaces.Services.Factories
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public interface IModalServiceFactory

    Methods

    CreateService(string, object, IEventDispatcherService, IFoundationViewElementFactory, IUiComponentFactory, IUiComponentFactory, IUiThemeDefinition, IUiService, IPlayerInputService, AudioPlayerPlayClip, string, ILogService, string)

    Creates a new instance of a modal service with the specified parameters.

    Declaration
    IModalService CreateService(string serviceName, object canvas, IEventDispatcherService eventDispatcherService, IFoundationViewElementFactory foundationViewElementFactory, IUiComponentFactory submitFactory, IUiComponentFactory modalFactory, IUiThemeDefinition theme, IUiService uiService, IPlayerInputService playerInputService, AudioPlayerPlayClip audioPlayerPlayClip, string audioPlayerServiceId, ILogService logService, string modalControllerId)
    Parameters
    Type Name Description
    string serviceName

    The name of the service.

    object canvas

    The canvas object where the modal will be displayed.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for handling events.

    IFoundationViewElementFactory foundationViewElementFactory

    The factory for creating foundation view elements.

    IUiComponentFactory submitFactory

    The factory for creating submit UI components.

    IUiComponentFactory modalFactory

    The factory for creating modal UI components.

    IUiThemeDefinition theme

    The UI theme definition for styling the modal.

    IUiService uiService

    The UI service for managing UI elements.

    IPlayerInputService playerInputService

    The player input service for handling user input.

    AudioPlayerPlayClip audioPlayerPlayClip

    The use case for playing audio clips.

    string audioPlayerServiceId

    The ID of the audio player service.

    ILogService logService

    The log service for logging information.

    string modalControllerId

    The ID of the modal controller.

    Returns
    Type Description
    IModalService

    A new instance of a modal service.

    In this article
    © 2026 Serenity. All Rights Reserved