--- title: window.screen.unlockOrientation slug: Web/API/Screen/unlockOrientation translation_of: Web/API/Screen/unlockOrientation ---
Screen.unlockOrientation() 함수는 이전의 page나 앱을 통해 지정한 화면 고정 값들을 모두 제거 한다.
Note: 이 함수는 설치된 웹앱 또는 full-screen mode 의 웹 페이지들에서 동작한다..
var unlocked = window.screen.unlockOrientation();
성공적으로 unlocked 된 경우 true 를 반환하며, 만약 방향이 unlock 될 수 없다면 false 를 반환한다.
if (window.screen.unlockOrientation()) {
// orientation was unlocked
} else {
// orientation unlock failed
}
| Specification | Status | Comment |
|---|---|---|
| {{ SpecName('Screen Orientation', '', 'Screen Orientation') }} | {{ Spec2('Screen Orientation') }} | Draft specification |
{{Compat("api.Screen.unlockOrientation")}}