---
title: "MTCustomAnnotationViewClassic.onEvent | Mobile sdk | Mobile sdk android | Android"
description: "onEvent"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTCustomAnnotationViewClassic.onEvent

open override fun [onEvent](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.annotations/-m-t-custom-annotation-view-classic/on-event/)(event: [MTEvent](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.events/-m-t-event/), data: [MTData](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-data/)?)

Called whenever a map event is fired.
