Module com.esri.arcgisruntime
Class LocationDisplay.DataSourceStatusChangedEvent
java.lang.Object
java.util.EventObject
com.esri.arcgisruntime.mapping.view.LocationDisplay.DataSourceStatusChangedEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
LocationDisplay
Holds information from a change to the status of a LocationDataSource.
- Since:
- 100.9.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDataSourceStatusChangedEvent
(LocationDisplay source, boolean isStarted) Creates a new DataSourceStatusChangedEvent with the given LocationDisplay and state. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Gets the error when starting the LocationDataSource, or null if there was no error.Gets the LocationDisplay that raised the event.boolean
Gets the new status of the LocationDataSource.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DataSourceStatusChangedEvent
Creates a new DataSourceStatusChangedEvent with the given LocationDisplay and state.- Parameters:
source
- the LocationDisplay that raised the eventisStarted
- the new boolean value indicating the starting status ofLocationDataSource
- Throws:
IllegalArgumentException
- if the source is null- Since:
- 100.9.0
-
-
Method Details
-
getSource
Gets the LocationDisplay that raised the event.- Overrides:
getSource
in classEventObject
- Returns:
- the LocationDisplay that raised the event
- Since:
- 100.9.0
-
isStarted
public boolean isStarted()Gets the new status of the LocationDataSource.- Returns:
- true if the LocationDataSource associated with the LocationDisplay has been started; false otherwise
- Since:
- 100.9.0
-
getError
Gets the error when starting the LocationDataSource, or null if there was no error. This is equivalent to callingLocationDisplay.getLocationDataSource().getError()
.- Returns:
- the error, or null if there was no error
- Since:
- 100.9.0
-