From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../ja/web/api/screen/unlockorientation/index.html | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 files/ja/web/api/screen/unlockorientation/index.html (limited to 'files/ja/web/api/screen/unlockorientation') diff --git a/files/ja/web/api/screen/unlockorientation/index.html b/files/ja/web/api/screen/unlockorientation/index.html new file mode 100644 index 0000000000..ab45c186ef --- /dev/null +++ b/files/ja/web/api/screen/unlockorientation/index.html @@ -0,0 +1,74 @@ +--- +title: Screen.unlockOrientation() +slug: Web/API/Screen/unlockOrientation +tags: + - API + - CSSOM View + - Method + - NeedsMarkupWork + - Screen Orientation + - メソッド + - 画面の方向 +translation_of: Web/API/Screen/unlockOrientation +--- +

{{APIRef("Screen Orientation API")}}{{Deprecated_Header}}

+ +

Screen.unlockOrientation() メソッドは、ページやアプリによって設定されているすべての画面のロックを除去します。代わりに {{DOMxRef("ScreenOrientation.unlock()")}} を使用してください。

+ +
+

注: このメソッドはインストールされたウェブアプリまたは全画面モードのウェブページでのみ動作します。

+
+ +

構文

+ +
var unlocked = window.screen.unlockOrientation();
+
+ +

返値

+ +

向きの固定の解除が成功した場合に true が、解除されなかった場合に false が返されます。

+ +

+ +
var unlockOrientation = screen.unlockOrientation || screen.mozUnlockOrientation || screen.msUnlockOrientation || (screen.orientation && screen.orientation.unlock);
+
+if (unlockOrientation()) {
+  // 向きのロックが解除されました
+} else {
+  // 向きのロックの解除に失敗しました
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Screen Orientation', 'published/20140220.html#extensions-to-the-screen-interface', 'lockOrientation()')}}{{Spec2('Screen Orientation')}}初回定義 (もう草稿には存在しません)
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.Screen.unlockOrientation")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf