cameraViewEx / com.priyankvasa.android.cameraviewex / Orientation / parse

parse

fun parse(orientation: Int): Orientation

Platform and version requirements: JVM

Parse sensor orientation read from android.view.OrientationEventListener to one of Portrait, PortraitInverted, Landscape, or LandscapeInverted

Parameters

orientation - available from android.view.OrientationEventListener.onOrientationChanged