MCPcopy Index your code
hub / github.com/flet-dev/flet / is_mobile

Function is_mobile

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

Indicates whether the target platform is mobile. Returns: `True` when targeting iOS or Android, otherwise `False`.

()

Source from the content-addressed store, hash-verified

78
79
80def is_mobile():
81 """
82 Indicates whether the target platform is mobile.
83
84 Returns:
85 `True` when targeting iOS or Android, otherwise `False`.
86 """
87 return is_ios() or is_android()
88
89
90if not is_mobile():

Callers 10

get_flet_versionFunction · 0.90
get_flutter_versionFunction · 0.90
open_in_browserFunction · 0.90
platform_utils.pyFile · 0.85
is_windowsFunction · 0.85
is_linuxFunction · 0.85
is_linux_serverFunction · 0.85
is_macosFunction · 0.85
get_platformFunction · 0.85
get_archFunction · 0.85

Calls 2

is_iosFunction · 0.85
is_androidFunction · 0.85

Tested by

no test coverage detected