Add an API to get the current Uno Platform target at runtime #11545
Labels
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/enhancement
New feature or request
low-hanging-🍒
Categorizes an issue that might be a quick win with meaningful positive impact.
What would you like to be added:
Currently it is possible to conditionally compile code to run on specific platforms, but there is no easy way to check the current Uno target at runtime. This would be especially useful to differentiate between Skia targets.
This could be a simple static method that would return an enum with Windows, iOS, SkiaWpf, SkiaGtk, etc.
Why is this needed:
Runtime checks
For which Platform:
All
The text was updated successfully, but these errors were encountered: