Geofence Event
data class GeofenceEvent(val id: String, val name: String? = null, var boundary: Boundary? = null, val geofenceType: GeofenceType? = null, val venueId: String? = null, var venue: Venue? = null, val geofenceEventType: GeofenceEventType, val partnerVenueId: String? = null, val lat: Double, val lng: Double, val hacc: Double, val timestamp: Long, val speed: Float, val direction: Float, val properties: Map<String, String>) : Parcelable
An event generated by a geofence that has been configured on the Movement SDK console. Represents the venue information and the user state at the time the event was triggered.
Constructors
Link copied to clipboard
fun GeofenceEvent(id: String, name: String? = null, boundary: Boundary? = null, geofenceType: GeofenceType? = null, venueId: String? = null, venue: Venue? = null, geofenceEventType: GeofenceEventType, partnerVenueId: String? = null, lat: Double, lng: Double, hacc: Double, timestamp: Long, speed: Float, direction: Float, properties: Map<String, String>)
Types
Properties
Link copied to clipboard
Gets the type of the event- GeofenceEventType.ENTRANCE entrance (inside geofence), GeofenceEventType.DWELL dwell (inside the geofence for specified amount of time, by default 1 minute), GeofenceEventType.VENUE_CONFIRMED venueConfirmed(venue matched for confirming dwell). GeofenceEventType.EXIT exit (outside the geofence).