Events

interface Events

Events feature — send location-based events to Advanta.

This feature allows the host app to send custom location-related events, such as geofence triggers (enter, dwell, exit) or other significant location updates. This data can be used for analytics, program tracking, and other backend processes.

Platform & threading

  • The function is suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at call sites.

Functions

Link copied to clipboard
abstract suspend fun sendLocationEvent(eventType: Int, timeStamp: Long, timeZoneOffset: String, locationId: Long?, latitude: Double?, longitude: Double?, dwellMinutes: Int?)

Sends a location-based event to the Advanta backend.