Package com.trimblemaps.mapsdk.location
Class LocationUpdate.Builder
java.lang.Object
com.trimblemaps.mapsdk.location.LocationUpdate.Builder
- Enclosing class:
- LocationUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanimationDuration(Long animationDuration) If set, all of the transitions to this update (puck's and possibly camera's if tracking mode is engaged) will have the provided duration.build()Builds a newLocationUpdate.intermediatePoints(List<android.location.Location> intermediatePoints) This method can be used to provide the list of locations that are on the path to the target location.location(android.location.Location location) Target location.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
Target location. -
intermediatePoints
public LocationUpdate.Builder intermediatePoints(@NonNull List<android.location.Location> intermediatePoints) This method can be used to provide the list of locations that are on the path to the target location. Those intermediate points are used as the animation path. The puck and the camera will be animated between each of the points linearly until reaching the target. -
animationDuration
If set, all of the transitions to this update (puck's and possibly camera's if tracking mode is engaged) will have the provided duration. If null, the duration will be calculated internally.This can also be used to disable transition animation by providing a duration equal to zero.
LocationComponentOptions.Builder.trackingAnimationDurationMultiplier(float)is ignored if this value is provided. -
build
Builds a newLocationUpdate.
-