android.os.Parcelable
@Deprecated public final class MarkerOptions extends BaseMarkerOptions<Marker,MarkerOptions> implements android.os.Parcelable
Modifier and Type | Field | Description |
---|---|---|
static android.os.Parcelable.Creator<MarkerOptions> |
CREATOR |
Deprecated.
|
icon, position, snippet, title
Modifier | Constructor | Description |
---|---|---|
|
MarkerOptions() |
Deprecated.
Defines options for a Marker.
|
protected |
MarkerOptions(android.os.Parcel in) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
int |
describeContents() |
Deprecated.
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
boolean |
equals(java.lang.Object o) |
Deprecated.
Compares this
MarkerOptions object with another MarkerOptions and
determines if their properties match. |
Icon |
getIcon() |
Deprecated.
Gets the custom icon set for this
MarkerOptions object. |
Marker |
getMarker() |
Deprecated.
Do not use this method.
|
LatLng |
getPosition() |
Deprecated.
Returns the position set for this
MarkerOptions object. |
java.lang.String |
getSnippet() |
Deprecated.
Gets the snippet set for this
MarkerOptions object. |
MarkerOptions |
getThis() |
Deprecated.
Get the instance of the object for which this method was called.
|
java.lang.String |
getTitle() |
Deprecated.
Gets the title set for this
MarkerOptions object. |
int |
hashCode() |
Deprecated.
Gives an integer which can be used as the bucket number for storing elements of the set/map.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
Deprecated.
Flatten this object in to a Parcel.
|
icon, position, setIcon, setPosition, setSnippet, setTitle, snippet, title
public static final android.os.Parcelable.Creator<MarkerOptions> CREATOR
public MarkerOptions()
protected MarkerOptions(android.os.Parcel in)
@NonNull public MarkerOptions getThis()
BaseMarkerOptions
getThis
in class BaseMarkerOptions<Marker,MarkerOptions>
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written. May be 0 or
Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public Marker getMarker()
getMarker
in class BaseMarkerOptions<Marker,MarkerOptions>
public LatLng getPosition()
MarkerOptions
object.LatLng
object specifying the marker's current position.public java.lang.String getSnippet()
MarkerOptions
object.public java.lang.String getTitle()
MarkerOptions
object.public Icon getIcon()
MarkerOptions
object.Icon
object that the marker is using. If the icon wasn't set, default icon
will return.public boolean equals(@Nullable java.lang.Object o)
MarkerOptions
object with another MarkerOptions
and
determines if their properties match.equals
in class java.lang.Object
o
- Another MarkerOptions
to compare with this object.MarkerOptions
object.
Else, false.public int hashCode()
hashCode
in class java.lang.Object