unoplatform/uno

Add an API to get the current Uno Platform target at runtime

Open

#11,545 建立於 2023年3月2日

在 GitHub 查看
 (4 留言) (3 反應) (0 負責人)C# (837 fork)batch import
difficulty/starter 🚀good first issuekind/enhancementlow-hanging-🍒no-repro

倉庫指標

Star
 (9,789 star)
PR 合併指標
 (平均合併 14天 8小時) (30 天內合併 130 個 PR)

描述

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

貢獻者指南