INNER CODE UNIT · Python
AppInterfaceIdiom
efroemling/ballistica · tools/bacommon/app.py:40
class AppInterfaceIdiom(Enum):
"""A general form-factor or method of experiencing a Ballistica app.
Note that it may be possible for a running app to switch idioms (for
instance if a mobile device or computer is connected to a TV).
"""
#: Small screen; assumed to have touch as primary input.
PHONE = 'phone'
#: Medium size screen; assumed to have touch as primary input.
TABLET = 'tablet'
#: Screen with medium amount of detail visible; assumed to have game
#: controller(s) as primary input. Note that this covers handheld or
#: arcade cabinet scenarios in addition to tv-connected consoles.
CONSOLE = 'console'