/** * A hook that provides reactive access to screen orientation information. * * This hook returns observables for the current screen angle and orientation type, * and automatically updates when the device is rotated. It also provides access * to the screen orientation API methods. * * @returns An object containing: * - angle: An observable number representing the current screen angle in degrees * - type: An observable string representing the current orientation type * - dispatchEvent: Function to dispatch orientation change events * - unlock: Function to unlock screen orientation * * @example * ```tsx * const { angle, type } = useScreenOrientation() * * return ( *
Angle: {angle}
*Type: {type}
*