# MarkerStyle


```
public class MarkerStyle implements Parcelable
```

<br />

*** ** * ** ***

Holds relevant metadata to render a bitmap from a png resource file or PinConfiguration.

## Summary

| ### Public fields |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ImageView` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#imageView()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PinConfiguration` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#pinConfiguration()` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#MarkerStyle()()` Default constructor for MarkerStyle. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#MarkerStyle(com.google.android.gms.maps3d.model.ImageView,com.google.android.gms.maps3d.model.PinConfiguration)( @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ImageView imageView, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PinConfiguration pinConfiguration )` Constructor for MarkerStyle with parameters for required fields. |

| ### Public methods |
|---|---|
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/Object.html o)` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ImageView` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#getImageView()()` Returns the ImageView of the marker. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PinConfiguration` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#getPinConfiguration()()` Returns the PinConfiguration of the marker. |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#hashCode()()` |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerStyle#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited methods

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract int` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Public fields

### imageView

```
public @Nullable ImageView imageView
```

### pinConfiguration

```
public @Nullable PinConfiguration pinConfiguration
```

## Public constructors

### MarkerStyle

```
public MarkerStyle()
```

Default constructor for MarkerStyle.

### MarkerStyle

```
public MarkerStyle(
    @Nullable ImageView imageView,
    @Nullable PinConfiguration pinConfiguration
)
```

Constructor for MarkerStyle with parameters for required fields.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ImageView imageView` | The ImageView of the marker. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PinConfiguration pinConfiguration` | The PinConfiguration of the marker. |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### getImageView

```
public @Nullable ImageView getImageView()
```

Returns the ImageView of the marker.

### getPinConfiguration

```
public @Nullable PinConfiguration getPinConfiguration()
```

Returns the PinConfiguration of the marker.

### hashCode

```
public int hashCode()
```

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```