Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Platform System #2

Open
FejZa opened this issue Feb 7, 2022 · 0 comments
Open

Implement Platform System #2

FejZa opened this issue Feb 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@FejZa
Copy link
Contributor

FejZa commented Feb 7, 2022

Reality Toolkit Feature Request

Is your feature request related to a problem? Please describe

The goal is to implement a Platform System, similar to existing out of the box systems. The job of the platform system is to ensure a platform is initialized properly when the application launches. Some platforms require specific API calls to be made on application launch or specific services to be started etc.

Additionally the platform system will provide a way to configure platform specifics, such as which AndroidManifest.xml to use for a given Android based platform. The PlatformSystemDataProviderProfile will allow assigning such a manifest and a respective Pre-Build processor will ensure that that manifest is made the active manfiest when building for said platform.

Additionally the platform system should provide runtime APIs to query platform specific information, such as:

  • What device am I running on?
  • What is the platform I am running on? -> We'll make sue of the existing platform classes here, e.g. LuminPlatform, PicoPlatform
  • Why was Trump ever president?

Mocked Interface for IPlatformSystem

/// Gets the platform we are running on.
BasePlatform Platform { get; }

/// Unique device identifier for the active platform, such as Meta Quest, Meta Quest 2, Pico Neo 3...
string Device { get; }

... you get the idea.

How would you classify your suggestion

  • Usability / Configuration
  • Architecture / Services
@FejZa FejZa added the enhancement New feature or request label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant