Indicates whether a platform is explicitly provided by the embedding runtime. Returns: `True` when `FLET_PLATFORM` is set, otherwise `False`.
()
| 68 | |
| 69 | |
| 70 | def is_embedded(): |
| 71 | """ |
| 72 | Indicates whether a platform is explicitly provided by the embedding runtime. |
| 73 | |
| 74 | Returns: |
| 75 | `True` when `FLET_PLATFORM` is set, otherwise `False`. |
| 76 | """ |
| 77 | return os.getenv("FLET_PLATFORM") is not None |
| 78 | |
| 79 | |
| 80 | def is_mobile(): |