docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AppBuilder

    A builder to create an App instance with required services.

    Inheritance
    object
    AppBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.MVVM
    Assembly: Unity.AppUI.MVVM.dll
    Syntax
    public class AppBuilder

    Properties

    services

    The services of the application.

    Declaration
    public IServiceCollection services { get; }
    Property Value
    Type Description
    IServiceCollection

    Methods

    BuildWith(IHost)

    Build and initialize the app with the given host.

    Declaration
    public IApp BuildWith(IHost host)
    Parameters
    Type Name Description
    IHost host

    The host to use.

    Returns
    Type Description
    IApp

    The built app instance.

    InstantiateWith<T>()

    Instantiates a new AppBuilder with the default services according to the given App type.

    Declaration
    public static AppBuilder InstantiateWith<T>() where T : class, IApp
    Returns
    Type Description
    AppBuilder

    The instantiated AppBuilder.

    Type Parameters
    Name Description
    T

    The type of the app to build. It is expected that this type is a subclass of App.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)