blob: bf4d3eb4d51631cc8d78480c48368cbd2369c23f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
title: window.screen.unlockOrientation
slug: Web/API/Screen/unlockOrientation
translation_of: Web/API/Screen/unlockOrientation
---
<div>{{APIRef("CSSOM View")}}{{Deprecated_header}}</div>
<p><strong><code>Screen.unlockOrientation()</code></strong> 함수는 이전의 page나 앱을 통해 지정한 화면 고정 값들을 모두 제거 한다.</p>
<div class="note">
<p><strong>Note:</strong> 이 함수는 설치된 웹앱 또는 <a href="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode" title="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode">full-screen mode</a> 의 웹 페이지들에서 동작한다..</p>
</div>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="eval">var unlocked = window.screen.unlockOrientation();
</pre>
<h3 id="Example" name="Example">Return value</h3>
<p>성공적으로 unlocked 된 경우 <code>true</code> 를 반환하며, 만약 방향이 unlock 될 수 없다면 <code>false</code> 를 반환한다.</p>
<h2 id="Example" name="Example">Example</h2>
<pre class="eval">if (window.screen.unlockOrientation()) {
// orientation was unlocked
} else {
// orientation unlock failed
}
</pre>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('Screen Orientation', '', 'Screen Orientation') }}</td>
<td>{{ Spec2('Screen Orientation') }}</td>
<td>Draft specification</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{Compat("api.Screen.unlockOrientation")}}</p>
<h2 id="See_also">See also</h2>
<ul>
<li>{{domxref("window.screen.orientation")}}</li>
<li>{{domxref("window.screen.lockOrientation()")}}</li>
<li>{{domxref("window.screen.onorientationchange")}}</li>
<li><a href="/en-US/docs/Managing_screen_orientation" title="/en-US/docs/Managing_screen_orientation">Managing screen orientation</a></li>
</ul>
|