API Reference > imodeljs-frontend > Views > ScreenViewport > setEventController setEventController Method Set the event controller for this Viewport. Destroys previous controller, if one was defined. setEventController(controller?: EventController): void Parameter Type Description controller EventController Returns - void Defined in core/frontend/src/Viewport.ts Line 2499 Last Updated: 13 June, 2024