Class Annotation
Warning
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.directions.driving
java.lang.Object
↳ com.yandex.mapkit.directions.driving.Annotation
class Annotation implements Serializable
The annotation that is displayed on the map.
Summary
Constructors
|
Signature and Description |
|
Annotation() |
|
Annotation(@NonNull Action action, |
Methods
|
Type and modifiers |
Method and Description |
|
|
getAction() |
|
|
getToponym() |
|
|
getDescriptionText() |
|
|
getActionMetadata() |
|
|
getLandmarks() |
|
|
getToponymPhrase() |
|
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
|
Constuctors
Annotation
|
Annotation() |
Use constructor with parameters in your code.
This one is for serialization only!
Annotation
|
Annotation(@NonNull Action action, |
Methods
getAction
|
@NonNull |
Driver action.
getToponym
|
@Nullable |
The toponym of the location.
Optional field, can be null.
getDescriptionText
|
@NonNull |
Description text to display.
getActionMetadata
|
@Nullable |
Action metadata.
Optional field, can be null.
getLandmarks
|
@NonNull |
Significant landmarks.
getToponymPhrase
|
@NonNull |
Toponym phrases with positions for pronunciation.
serialize
|
@Override |
getNativeName
|
java.lang.String getNativeName() |