类 BannerInstructions.Builder

java.lang.Object
ai.nextbillion.kits.directions.models.BannerInstructions.Builder
封闭类:
BannerInstructions

public abstract static class BannerInstructions.Builder extends Object
This builder can be used to set the values describing the BannerInstructions.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • distanceAlongGeometry

      public abstract BannerInstructions.Builder distanceAlongGeometry(double distanceAlongGeometry)
      Distance in meters from the beginning of the step at which the visual instruction should be visible.
      参数:
      distanceAlongGeometry - double value representing the length from the steps first point to where the banner instruction should be displayed
      返回:
      this builder for chaining options together
    • primary

      public abstract BannerInstructions.Builder primary(@NonNull BannerText primary)
      Main visual information about the LegStep.
      参数:
      primary - BannerText representing the primary visual information
      返回:
      this builder for chaining options together
    • secondary

      public abstract BannerInstructions.Builder secondary(@Nullable BannerText secondary)
      Ancillary visual information about the LegStep.
      参数:
      secondary - BannerText representing the secondary visual information
      返回:
      this builder for chaining options together
    • sub

      public abstract BannerInstructions.Builder sub(@Nullable BannerText sub)
      Additional information that is included if we feel the driver needs a heads up about something. Can include information about the next maneuver (the one after the upcoming one), if the step is short - can be null, or can be lane information. If we have lane information, that trumps information about the next maneuver.
      参数:
      sub - BannerText representing the sub visual information
      返回:
      BannerText representing the sub visual information
    • view

      public abstract BannerInstructions.Builder view(@Nullable BannerView view)
      Optional image to display for an upcoming maneuver. Used to provide a visual for complex junctions and maneuver. If the step is short the image should be displayed for the duration of the step, otherwise it is shown as you approach the maneuver.
      参数:
      view - BannerView representing the sub visual information
      返回:
      this builder for chaining options together
    • build

      public abstract BannerInstructions build()
      Build a new BannerInstructions object.
      返回:
      a new BannerInstructions using the provided values in this builder