Class Annotation
com.yandex.mapkit.driving
java.lang.Object ⇽ Annotation
public class Annotation
The annotation that is displayed on the map.
Constructors
Annotation() | Use constructor with parameters in your code. |
Annotation(Action action, String toponym, String descriptionText, ActionMetadata actionMetadata, List< Landmark > landmarks, ToponymPhrase toponymPhrase) |
Annotation() | Use constructor with parameters in your code. |
Annotation(Action action, String toponym, String descriptionText, ActionMetadata actionMetadata, List< Landmark > landmarks, ToponymPhrase toponymPhrase) |
Methods
synchronized Action | getAction() | Optional field, can be null. |
synchronized ActionMetadata | getActionMetadata() | |
synchronized String | getDescriptionText() | |
synchronized List< Landmark > | getLandmarks() | |
String | getNativeName() | |
synchronized String | getToponym() | Optional field, can be null. |
synchronized ToponymPhrase | getToponymPhrase() | Optional field, can be null. |
void | serialize(Archive archive) |
synchronized Action | getAction() | Optional field, can be null. |
synchronized ActionMetadata | getActionMetadata() | |
synchronized String | getDescriptionText() | |
synchronized List< Landmark > | getLandmarks() | |
String | getNativeName() | |
synchronized String | getToponym() | Optional field, can be null. |
synchronized ToponymPhrase | getToponymPhrase() | Optional field, can be null. |
void | serialize(Archive archive) |
Constructor Detail
Annotation
public Annotation ()
Use constructor with parameters in your code.
This one is for serialization only!Annotation
public Annotation (Action action, String toponym, String descriptionText, ActionMetadata actionMetadata, List< Landmark > landmarks, ToponymPhrase toponymPhrase)
Method Detail
getAction
public synchronized Action getAction ()
Optional field, can be null.
getActionMetadata
public synchronized ActionMetadata getActionMetadata ()
getDescriptionText
public synchronized String getDescriptionText ()
getLandmarks
public synchronized List< Landmark > getLandmarks ()
getNativeName
public static String getNativeName ()
getToponym
public synchronized String getToponym ()
Optional field, can be null.
getToponymPhrase
public synchronized ToponymPhrase getToponymPhrase ()
Optional field, can be null.
serialize
public void serialize (Archive archive)