> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/smart-geofences/smartgeofenceeventlistener.md).

# SmartGeofenceEventListener

A listener that receives smart geofence entry and exit updates.

## SmartGeofenceEventListener API

### `onSmartGeofenceEvent`

> ```java
> void onSmartGeofenceEvent(SmartGeofenceEvent event)
> ```
>
> Called whenever a smart geofence entry or exit is detected.

<table><thead><tr><th width="193">Parameters</th><th></th></tr></thead><tbody><tr><td>event</td><td>A <a href="/pages/1lnCrLJcNzCfIXTuf7kF">SmartGeofenceEvent</a> object representing the entry/exit event that just happened.</td></tr></tbody></table>
