类 BannerView.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • text

      public abstract BannerView.Builder text(@NonNull String text)
      Plain text with all the BannerComponents text combined.
      参数:
      text - plain text with all the BannerComponents text items combined
      返回:
      this builder for chaining options together
    • components

      public abstract BannerView.Builder components(List<BannerComponents> components)
      A part or element of the BannerInstructions.
      参数:
      components - a BannerComponents specific to a LegStep
      返回:
      this builder for chaining options together
    • type

      public abstract BannerView.Builder type(@Nullable String type)
      This indicates the type of maneuver. See BannerView.type() for a full list of options.
      参数:
      type - String with type of maneuver
      返回:
      this builder for chaining options together
      另请参阅:
    • modifier

      public abstract BannerView.Builder modifier(@Nullable String modifier)
      This indicates the mode of the maneuver. If type is of turn, the modifier indicates the change in direction accomplished through the turn. If the type is of depart/arrive, the modifier indicates the position of waypoint from the current direction of travel.
      参数:
      modifier - String with modifier
      返回:
      this builder for chaining options together
    • build

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