docs.unity3d.com
    Show / Hide Table of Contents

    Class AppBuilder

    A builder to create an App instance with required services.

    Inheritance
    Object
    AppBuilder
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.MVVM
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023