API Reference > imodeljs-frontend > Tools > InteractiveTool > onSelectedViewportChanged onSelectedViewportChanged Method Called when active view changes. Tool may choose to restart or exit based on current view type. onSelectedViewportChanged(_previous: ScreenViewport | undefined, _current: ScreenViewport | undefined): void Parameter Type Description _previous ScreenViewport | undefined _current ScreenViewport | undefined Returns - void Defined in core/frontend/src/tools/Tool.ts Line 599 Last Updated: 13 June, 2024