{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DeviceController.ScreenOrientation

enum DeviceController.ScreenOrientation


Enum for screen orientations a device can be set to.

Summary

Enum Values

LANDSCAPE
PORTRAIT

Public functions

DeviceController.ScreenOrientation
valueOf(name: String)
Array<DeviceController.ScreenOrientation>

Enum Values

LANDSCAPE

val DeviceController.ScreenOrientation.LANDSCAPEDeviceController.ScreenOrientation

PORTRAIT

val DeviceController.ScreenOrientation.PORTRAITDeviceController.ScreenOrientation

Public functions

valueOf

fun valueOf(name: String): DeviceController.ScreenOrientation

values

fun values(): Array<DeviceController.ScreenOrientation>