# PopoverStyle

# PopoverStyle


```
public class PopoverStyle
```

<br />

*** ** * ** ***

Style attributes for the popover.

## Summary

| ### Constants |
|---|---|
| `static final https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#DEFAULT()` The default popover style. |

| ### Public fields |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt.html @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/Integer.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#backgroundColor()` The background color of the popover. |
| `float` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#borderRadius()` The border radius of the popover. |
| `float` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#padding()` The padding around the content of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverShadow` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#shadow()` The shadow of the popover. |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#PopoverStyle()()` Default constructor for PopoverStyle. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#PopoverStyle(float,java.lang.Integer,float,com.google.android.gms.maps3d.model.PopoverShadow)( float padding, @https://developer.android.com/reference/androidx/annotation/ColorInt.html https://developer.android.com/reference/java/lang/Integer.html backgroundColor, float borderRadius, https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverShadow shadow )` Creates a PopoverStyle with the specified attributes. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/Integer.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#getBackgroundColor()()` Returns the background color of the popover. |
| `float` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#getBorderRadius()()` Returns the border radius of the popover. |
| `float` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#getPadding()()` Returns the padding around the content of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverShadow` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#getShadow()()` Returns the shadow of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#setBackgroundColor(java.lang.Integer)(@https://developer.android.com/reference/androidx/annotation/ColorInt.html @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/Integer.html backgroundColor)` Sets the background color of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#setBorderRadius(float)(float borderRadius)` Sets the border radius of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#setPadding(float)(float padding)` Sets the padding around the content of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverStyle#setShadow(com.google.android.gms.maps3d.model.PopoverShadow)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverShadow shadow)` Sets the shadow of the popover. |

## Constants

### DEFAULT

```
public static final PopoverStyle DEFAULT
```

The default popover style.

## Public fields

### backgroundColor

```
public @ColorInt @Nullable Integer backgroundColor
```

The background color of the popover.

### borderRadius

```
public float borderRadius
```

The border radius of the popover.

### padding

```
public float padding
```

The padding around the content of the popover.

### shadow

```
public PopoverShadow shadow
```

The shadow of the popover.

## Public constructors

### PopoverStyle

```
public PopoverStyle()
```

Default constructor for PopoverStyle.

### PopoverStyle

```
public PopoverStyle(
    float padding,
    @ColorInt Integer backgroundColor,
    float borderRadius,
    PopoverShadow shadow
)
```

Creates a PopoverStyle with the specified attributes.

| Parameters |
|---|---|
| `float padding` | The padding around the content of the popover. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt.html https://developer.android.com/reference/java/lang/Integer.html backgroundColor` | The background color. |
| `float borderRadius` | The border radius of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverShadow shadow` | The shadow style. |

## Public methods

### getBackgroundColor

```
public @Nullable Integer getBackgroundColor()
```

Returns the background color of the popover.

### getBorderRadius

```
public float getBorderRadius()
```

Returns the border radius of the popover.

### getPadding

```
public float getPadding()
```

Returns the padding around the content of the popover.

### getShadow

```
public PopoverShadow getShadow()
```

Returns the shadow of the popover.

### setBackgroundColor

```
public PopoverStyle setBackgroundColor(@ColorInt @Nullable Integer backgroundColor)
```

Sets the background color of the popover.

### setBorderRadius

```
public PopoverStyle setBorderRadius(float borderRadius)
```

Sets the border radius of the popover.

### setPadding

```
public PopoverStyle setPadding(float padding)
```

Sets the padding around the content of the popover.

### setShadow

```
public PopoverStyle setShadow(PopoverShadow shadow)
```

Sets the shadow of the popover.