Vixen
02b45cc4
csharp
public static class PlatformHost

Choosing a platform, and saying which one was chosen and why.

Read the guide page for this →

Remarks

A function rather than a registry: there are two implementations that can run in this process, the choice between them is one question, and a plugin model for something with two answers would be machinery for its own sake. When Android, iOS and Web arrive they are separate app heads with separate entry points — a phone cannot fall back to the desktop platform, so there is nothing for a registry to select between there either.

Fields and properties (1)

  • public static IPlatformFactory Instance

    This class as an IPlatformFactory, which is what a builder takes.

Methods (1)

  • public static IPlatform Create(AppConfig config)

    Builds the platform an application asked for.

Used by (3)

  • AppBackendTestsVixen.App.Tests
  • FactoryVixen.App
  • VixenAppVixen.App