logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IUiServiceFactory

    Factory interface for creating instances of IUiService with specified parameters.

    Namespace: Serenity.Ui.Application.Interfaces
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public interface IUiServiceFactory

    Methods

    CreateService(string, IUiSettings, object, IEventDispatcherService, ILogService, IPrimaryInputPromptView)

    Creates an instance of IUiService using the provided parameters.

    Declaration
    IUiService CreateService(string serviceName, IUiSettings uiSettings, object canvas, IEventDispatcherService eventDispatcherService, ILogService logService, IPrimaryInputPromptView primaryInputPromptView)
    Parameters
    Type Name Description
    string serviceName

    The name of the UI service to create.

    IUiSettings uiSettings

    The UI settings to configure the service.

    object canvas

    The canvas object (e.g., a Canvas component in Unity) where the UI will be rendered.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for handling UI events.

    ILogService logService

    The logging service for logging UI-related information.

    IPrimaryInputPromptView primaryInputPromptView

    The primary input prompt view for displaying input prompts.

    Returns
    Type Description
    IUiService

    A new instance of IUiService.

    In this article
    © 2026 Serenity. All Rights Reserved