类 BannerView.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.BannerView.Builder
- 封闭类:
- BannerView
This builder can be used to set the values describing the
BannerView.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract BannerViewbuild()Build a newBannerViewobject.abstract BannerView.Buildercomponents(List<BannerComponents> components) A part or element of theBannerInstructions.abstract BannerView.BuilderThis indicates the mode of the maneuver.abstract BannerView.BuilderPlain text with all theBannerComponentstext combined.abstract BannerView.BuilderThis indicates the type of maneuver.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
text
Plain text with all theBannerComponentstext combined.- 参数:
text- plain text with all theBannerComponentstext items combined- 返回:
- this builder for chaining options together
-
components
A part or element of theBannerInstructions.- 参数:
components- aBannerComponentsspecific to aLegStep- 返回:
- this builder for chaining options together
-
type
This indicates the type of maneuver. SeeBannerView.type()for a full list of options.- 参数:
type- String with type of maneuver- 返回:
- this builder for chaining options together
- 另请参阅:
-
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
Build a newBannerViewobject.- 返回:
- a new
BannerViewusing the provided values in this builder
-