useScreenOrientation
Reactive Screen Orientation API. It provides web developers with information about the user's current screen orientation.
Package: @vueuse/core
Category: Browser
Usage
import { useScreenOrientation } from '@vueuse/core'
const {
isSupported,
orientation,
angle,
lockOrientation,
unlockOrientation,
} = useScreenOrientation()Returns
| Name | Type |
|---|---|
| isSupported | useSupported |
| orientation | shallowRef<OrientationType | undefined> |
| angle | shallowRef |
| lockOrientation | Ref |
| unlockOrientation | Ref |