setDisplayRotation

suspend fun setDisplayRotation(rotation: DisplayRotation)(source)

Rotates the display to the exact rotation and freezes it there; otherwise as setOrientation.