ScreenOrientation
ceramic.ScreenOrientation (Abstract)
Defines screen orientation modes for mobile and desktop applications.
ScreenOrientation uses bit flags to allow combining multiple orientations, enabling applications to specify which orientations they support. This is particularly important for mobile apps where device rotation is common.
The orientation values can be combined using bitwise OR operations to create orientation masks that support multiple modes.
Example usage:
// Support only portrait orientations
app.settings.orientation = ScreenOrientation.PORTRAIT;
// Support all orientations
app.settings.orientation = ScreenOrientation.PORTRAIT | ScreenOrientation.LANDSCAPE;
// Support specific orientations
app.settings.orientation = ScreenOrientation.PORTRAIT_UPRIGHT | ScreenOrientation.LANDSCAPE_LEFT;
See: Settings#orientation, Screen
Type Conversions
From:
[Int](/api-docs/clay-native/Int/)
To:
[Int](/api-docs/clay-native/Int/)
Metadata
Name | Parameters |
---|---|
:enum |
- |