类 BannerView
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.BannerView
- 所有已实现的接口:
Serializable
Includes both plain text information that can be visualized inside your navigation application
along with the text string broken down into
BannerComponents which may or may not
include a image url. To receive this information, your request must have
NbmapDirections.Builder#bannerInstructions() set to true.- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static BannerView.Builderbuilder()Create a new instance of this class by using theBannerView.Builderclass.abstract List<BannerComponents>A part or element of theBannerInstructions.static BannerViewCreate a new instance of this class by passing in a formatted valid JSON String.abstract Stringmodifier()This indicates the mode of the maneuver.abstract Stringtext()Plain text with all theBannerComponentstext combined.abstract BannerView.BuilderConvert the currentBannerViewto its builder holding the currently assigned values.abstract Stringtype()This indicates the type of maneuver.static com.google.gson.TypeAdapter<BannerView>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
BannerView
public BannerView()
-
-
方法详细资料
-
builder
Create a new instance of this class by using theBannerView.Builderclass.- 返回:
- this classes
BannerView.Builderfor creating a new instance
-
text
Plain text with all theBannerComponentstext combined.- 返回:
- plain text with all the
BannerComponentstext items combined
-
components
A part or element of theBannerInstructions.- 返回:
- a
BannerComponentsspecific to aLegStep
-
type
This indicates the type of maneuver.- 返回:
- String with type of maneuver
- 另请参阅:
-
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.- 返回:
- String with modifier
-
toBuilder
Convert the currentBannerViewto its builder holding the currently assigned values. This allows you to modify a single property and then rebuild the object resulting in an updated and modifiedBannerView.- 返回:
- a
BannerView.Builderwith the same values set to match the ones defined in thisBannerView
-
typeAdapter
Gson type adapter for parsing Gson to this class.- 参数:
gson- the builtGsonobject- 返回:
- the type adapter for this class
-
fromJson
Create a new instance of this class by passing in a formatted valid JSON String.- 参数:
json- a formatted valid JSON string defining a BannerText- 返回:
- a new instance of this class defined by the values passed inside this static factory method
-