public abstract class BannerView extends DirectionsJsonObject
BannerComponents
which may or may not
include a image url. To receive this information, your request must have
MapboxDirections.bannerInstructions()
set to true.Modifier and Type | Class and Description |
---|---|
static class |
BannerView.Builder
This builder can be used to set the values describing the
BannerView . |
Constructor and Description |
---|
BannerView() |
Modifier and Type | Method and Description |
---|---|
static BannerView.Builder |
builder()
Create a new instance of this class by using the
BannerView.Builder class. |
abstract java.util.List<BannerComponents> |
components()
A part or element of the
BannerInstructions . |
static BannerView |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
modifier()
This indicates the mode of the maneuver.
|
abstract java.lang.String |
text()
Plain text with all the
BannerComponents text combined.BannerInstructions. |
abstract BannerView.Builder |
toBuilder()
Convert the current
BannerView to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
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.
|
toJson
public static BannerView.Builder builder()
BannerView.Builder
class.BannerView.Builder
for creating a new instance@NonNull public abstract java.lang.String text()
BannerComponents
text combined.BannerInstructions.BannerComponents
text items combined@Nullable public abstract java.util.List<BannerComponents> components()
BannerInstructions
.BannerComponents
specific to a LegStep
@Nullable public abstract java.lang.String type()
StepManeuver.StepManeuverType
@Nullable public abstract java.lang.String modifier()
public abstract BannerView.Builder toBuilder()
BannerView
to 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 modified BannerView
.BannerView.Builder
with the same values set to match the ones defined
in this BannerView
public static com.google.gson.TypeAdapter<BannerView> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
objectpublic static BannerView fromJson(java.lang.String json)
json
- a formatted valid JSON string defining a BannerText