> 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/ios/smart-geofences/smartgeofenceeventdelegate.md).

# SmartGeofenceEventDelegate

A delegate that will be invoked when a smart geofence event is detected.

#### `onSmartGeofenceEvent`

> ```swift
> @objc
> func onSmartGeofenceEvent(_ smartGeofenceEvent: SmartGeofenceEvent)
> ```
>
> Called whenever a smart geofence entry/exit is detected.

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