MediaPlayerViewController.Configuration.ScreenOrientationLock

enum ScreenOrientationLock : String

화면 방향 고정 상태를 나타내는 열거형입니다.


케이스

landscape

case landscape = "landscape"

가로 방향으로 고정

off

case off = "off"

고정하지 않음

portrait

case portrait = "portrait"

세로 방향으로 고정


메서드

toInterfaceOrientaion()

func toInterfaceOrientaion() -> UIInterfaceOrientationMask

현재 화면 방향 고정 상태를 UIInterfaceOrientationMask 타입으로 나타내는 메서드입니다.
portrait 일 때는, UIInterfaceOrientationMask.portrait를, landscape일 때는 UIInterfaceOrientationMask.landscape를, 화면 고정을 끄면 UIInterfaceOrientationMask.all을 반환합니다.