MCPcopy
hub / github.com/flet-dev/flet / is_embedded

Function is_embedded

sdk/python/packages/flet/src/flet/utils/platform_utils.py:70–77  ·  view source on GitHub ↗

Indicates whether a platform is explicitly provided by the embedding runtime. Returns: `True` when `FLET_PLATFORM` is set, otherwise `False`.

()

Source from the content-addressed store, hash-verified

68
69
70def 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
80def is_mobile():

Callers 1

run_asyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected