java.lang.Object
com.esri.arcgisruntime.arcgisservices.ServiceTimeInfo
Represents metadata about a service's support for querying features (see
FeatureTable.queryFeaturesAsync(QueryParameters)) and
requesting map images for ArcGISMapImageLayer based on time. It contains
various time related information such as the map's time extent and the map's native time reference.- Since:
- 100.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicates how the start and end time of the time slider extent are processed. -
Method Summary
Modifier and TypeMethodDescriptionGets the default time interval for the service.intGets the default time window for the service to use for a time slider.Gets the time extent of the service.Gets the information about the time reference for the service.Gets the time relation for the service.booleanIndicates if the service has live data.
-
Method Details
-
getDefaultInterval
Gets the default time interval for the service. The time interval can be used as a time slider's step size.- Returns:
- the default interval
- Since:
- 100.3.0
-
getDefaultTimeWindow
public int getDefaultTimeWindow()Gets the default time window for the service to use for a time slider. If this value is 0, then the time slider should create and use a TimeExtent for an instant in time (start time = end time), if it is greater than 0 this value should be used as the difference between the start time and end time. The time units are specified bygetDefaultInterval().- Returns:
- the time window in the services time units
- Since:
- 100.0.0
-
hasLiveData
public boolean hasLiveData()Indicates if the service has live data. If true, export and identify operations will default the TimeExtent to startTime = (current server time - time interval), endTime = current server time.- Returns:
- returns true if the service has live data, false otherwise.
- Since:
- 100.0.0
-
getTimeReference
Gets the information about the time reference for the service.- Returns:
- the time reference
- Since:
- 100.0.0
-
getTimeRelation
Gets the time relation for the service. This can be used for determining how a time slider's start and end time are processed.- Returns:
- the time relation
- Since:
- 100.0.0
-
getTimeExtent
Gets the time extent of the service.- Returns:
- the time extent, or null if the service is not time aware
- Since:
- 100.3.0
-