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: undefined | ScreenViewport, _current: undefined | ScreenViewport): void Parameter Type Description _previous undefined | ScreenViewport _current undefined | ScreenViewport Returns - void Defined in core/frontend/src/tools/Tool.ts Line 600 Last Updated: 11 June, 2024