Package com.jbstrap.jbmap.events
Class LocationFoundEvent
java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.jbmap.events.LocationFoundEvent
public class LocationFoundEvent
extends com.jbstrap.core.event.BaseEvent
The LocationFoundEvent class contains the user�s location data. These are the following:
- Longitude
- Latitude
- Location accuracy
- Error/success message
- Since:
- 4.0
-
Field Summary
Fields inherited from class com.jbstrap.core.event.BaseEvent
client, eventType, senderId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the location accuracy.Gets the latitude coordinates.Gets the longitude coordinates.Gets the message returned when the user�s location was identified.Methods inherited from class com.jbstrap.core.event.BaseEvent
b, b, getClient, getComponent, getEventId, getEventType, getSenderId
-
Constructor Details
-
LocationFoundEvent
public LocationFoundEvent()
-
-
Method Details
-
getLongitude
Gets the longitude coordinates.- Returns:
- Longitude
-
getLatitude
Gets the latitude coordinates.- Returns:
- Latitude
-
getAccuracy
Gets the location accuracy. Location accuracy is represented in a circle with a given radius.- Returns:
- Circle radius (meters)
-
getMessage
Gets the message returned when the user�s location was identified.- Returns:
- Message Successful identification attempt: SUCCESS.
-
fireEvent
public void fireEvent()- Specified by:
fireEvent
in classcom.jbstrap.core.event.BaseEvent
-