Class LocationUpdate.Builder

java.lang.Object
com.trimblemaps.mapsdk.location.LocationUpdate.Builder
Enclosing class:
LocationUpdate

public static class LocationUpdate.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • location

      public LocationUpdate.Builder location(@Nullable android.location.Location 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

      public LocationUpdate.Builder animationDuration(@Nullable 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. 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

      public LocationUpdate build()
      Builds a new LocationUpdate.