unoplatform/uno
GitHub ã§èŠãAdd an API to get the current Uno Platform target at runtime
Open
#11,545 opened on 2023幎3æ2æ¥
difficulty/starter ðgood first issuekind/enhancementlow-hanging-ðno-repro
Repository metrics
- Stars
- Â (9,789 stars)
- PR merge metrics
-  (å¹³åããŒãž 14d 8h) (30d ã§ 130 merged PRs)
説æ
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