API Reference > ui-framework > Hooks > useActiveViewport useActiveViewport Function React hook that maintains the active viewport. useActiveViewport(): ScreenViewport | undefined Returns - ScreenViewport | undefined Defined in ui/framework/src/ui-framework/hooks/useActiveViewport.tsx Line 18 Last Updated: 11 June, 2024