unoplatform/uno

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

Open

#11.545 aberto em 2 de mar. de 2023

Ver no GitHub
 (4 comments) (3 reactions) (0 assignees)C# (837 forks)batch import
difficulty/starter 🚀good first issuekind/enhancementlow-hanging-🍒no-repro

Métricas do repositório

Stars
 (9.789 stars)
Métricas de merge de PR
 (Mesclagem média 14d 8h) (130 fundiu PRs em 30d)

Description

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

Guia do colaborador