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 2887 Last Updated: 12 June, 2024