U
- Type of the marker to be composedT
- Type of the builder to be used for composing a custom Marker@Deprecated public abstract class BaseMarkerOptions<U extends Marker,T extends BaseMarkerOptions<U,T>> extends Object implements Parcelable
Extending this class requires implementing Parceable interface.
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
protected Icon |
icon
Deprecated.
|
protected LatLng |
position
Deprecated.
|
protected String |
snippet
Deprecated.
|
protected String |
title
Deprecated.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BaseMarkerOptions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract U |
getMarker()
Deprecated.
Get the Marker.
|
abstract T |
getThis()
Deprecated.
Get the instance of the object for which this method was called.
|
T |
icon(Icon icon)
Deprecated.
Set the icon of the Marker.
|
T |
position(LatLng position)
Deprecated.
Set the geographical location of the Marker.
|
T |
setIcon(Icon icon)
Deprecated.
Set the icon of the Marker.
|
T |
setPosition(LatLng position)
Deprecated.
Set the geographical location of the Marker.
|
T |
setSnippet(String snippet)
Deprecated.
Set the snippet of the Marker.
|
T |
setTitle(String title)
Deprecated.
Set the title of the Marker.
|
T |
snippet(String snippet)
Deprecated.
Set the snippet of the Marker.
|
T |
title(String title)
Deprecated.
Set the title of the Marker.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
protected LatLng position
protected String snippet
protected String title
protected Icon icon
public T position(LatLng position)
position
- the location to position the Marker
.public T snippet(String snippet)
snippet
- the snippet of the Marker
.public T title(String title)
title
- the title of the Marker
.public T icon(Icon icon)
icon
- the icon of the Marker
.public T setIcon(Icon icon)
icon
- the icon of the Marker
.public T setPosition(LatLng position)
position
- the location to position the Marker
.public T setSnippet(String snippet)
snippet
- the snippet of the Marker
.public T setTitle(String title)
title
- the title of the Marker
.public abstract T getThis()
public abstract U getMarker()
© 2015–2019 Mapbox. All rights reserved.