{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/screen-orientation-lock",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "screen-orientation-lock",
    "name": "Screen orientation lock",
    "description": "The screen.orientation.lock() method prevents changes to the screen orientation, typically in fullscreen applications such as games. For example, while locked, rotating a phone to the side won't change the screen orientation from landscape to portrait.",
    "group": "other",
    "groupName": "other",
    "spec": "https://w3c.github.io/screen-orientation/#lock-method",
    "baseline": false,
    "compatCount": 2,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.ScreenOrientation.lock",
      "api.ScreenOrientation.unlock"
    ],
    "s": {
      "chrome_android": {
        "v": "38",
        "d": 16351
      },
      "firefox": {
        "v": "144",
        "d": 20375
      },
      "firefox_android": {
        "v": "144",
        "d": 20375
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.ScreenOrientation.lock",
      "cat": "api",
      "mdn": "API/ScreenOrientation/lock",
      "spec": "https://w3c.github.io/screen-orientation/#dom-screenorientation-lock",
      "st": 1,
      "wf": "screen-orientation-lock",
      "bl": false,
      "s": {
        "chrome": {
          "p": [
            "38",
            16350
          ]
        },
        "firefox": {
          "v": "144",
          "d": 20375
        },
        "edge": {
          "p": [
            "79",
            18276
          ]
        },
        "chrome_android": {
          "v": "38",
          "d": 16351
        },
        "firefox_android": {
          "v": "144",
          "d": 20375
        },
        "samsunginternet_android": {
          "v": "3.0",
          "d": 16535
        },
        "opera": {
          "p": [
            "25",
            16358
          ]
        },
        "opera_android": {
          "v": "25",
          "d": 16359
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Always throws <code>NotSupportedError</code>.",
          "b": [
            "chrome",
            "firefox",
            "edge",
            "opera"
          ]
        },
        {
          "t": "The API exists but returns <code>NS_ERROR_UNEXPECTED</code>.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "api.ScreenOrientation.unlock",
      "cat": "api",
      "mdn": "API/ScreenOrientation/unlock",
      "spec": "https://w3c.github.io/screen-orientation/#dom-screenorientation-unlock",
      "st": 1,
      "wf": "screen-orientation-lock",
      "bl": false,
      "s": {
        "chrome": {
          "p": [
            "38",
            16350
          ]
        },
        "firefox": {
          "v": "144",
          "d": 20375
        },
        "edge": {
          "p": [
            "79",
            18276
          ]
        },
        "chrome_android": {
          "v": "38",
          "d": 16351
        },
        "firefox_android": {
          "v": "144",
          "d": 20375
        },
        "samsunginternet_android": {
          "v": "3.0",
          "d": 16535
        },
        "opera": {
          "p": [
            "25",
            16358
          ]
        },
        "opera_android": {
          "v": "25",
          "d": 16359
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Always throws <code>NotSupportedError</code>.",
          "b": [
            "chrome",
            "firefox",
            "edge",
            "opera"
          ]
        },
        {
          "t": "The API exists but returns <code>NS_ERROR_UNEXPECTED</code>.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    }
  ]
}