from

fun from(rotation: Int): Orientation

Resolves the correct Orientation from a Surface rotation integer, accounting for the natural orientation of the device.

Parameters

rotation

A Surface rotation value.