setOrientation

fun Activity.setOrientation(type: Int = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)

Set the orientation of the activity

Parameters

type

The orientation to set to