GeofenceEvent

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

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var boundary: Boundary? = null
Link copied to clipboard
@SerializedName(value = "direction")
val direction: Float

Gets the direction of the location at which the event was generated.

Link copied to clipboard
@SerializedName(value = "eventType")
val geofenceEventType: GeofenceEventType

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).

Link copied to clipboard
@SerializedName(value = "type")
val geofenceType: GeofenceType? = null
Link copied to clipboard
@SerializedName(value = "hacc")
val hacc: Double

Gets the horizontal accuracy of the location at which the event was generated.

Link copied to clipboard
@SerializedName(value = "id")
val id: String
Link copied to clipboard
@SerializedName(value = "lat")
val lat: Double

Gets the latitude of the location at which the event was generated.

Link copied to clipboard
@SerializedName(value = "lng")
val lng: Double

Gets the longitude of the location at which the event was generated.

Link copied to clipboard
@SerializedName(value = "name")
val name: String? = null
Link copied to clipboard
@SerializedName(value = "partnerVenueId")
val partnerVenueId: String? = null
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "speed")
val speed: Float

Gets the speed of the location at which the event was generated.

Link copied to clipboard
@SerializedName(value = "timestamp")
val timestamp: Long

Gets the time of the location at which the event was generated.

Link copied to clipboard
var venue: Venue? = null
Link copied to clipboard
@SerializedName(value = "venueId")
val venueId: String? = null

Gets the id of the venue that is associated to this geofence event.