# PopoverOptions


```
public class PopoverOptions
```

<br />

*** ** * ** ***

Options for creating a popover.

## Summary

| ### Public fields |
|---|---|
| `int` | `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#altitudeMode()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/graphics/Point.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#anchorOffset()` |
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#autoCloseEnabled()` |
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#autoPanEnabled()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#content()` |
| `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/PopoverOptions#popoverStyle()` |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Anchorable` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#positionAnchor()` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#PopoverOptions()()` Default constructor for PopoverOptions. |

| ### Public methods |
|---|---|
| `int` | `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getAltitudeMode()()` The altitude mode of the popover. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/graphics/Point.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getAnchorOffset()()` The offset of the anchor object that the popover is anchored to. |
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getAutoCloseEnabled()()` Whether the popover is auto-closed when the anchor is occluded. |
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getAutoPanEnabled()()` Whether the popover is auto-pan when the anchor is occluded. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getContent()()` The View object that is used as 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/PopoverOptions#getPopoverStyle()()` The style of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Anchorable` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#getPositionAnchor()()` The anchor object that the popover is anchored to. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setAltitudeMode(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode int altitudeMode)` The altitude mode of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setAnchorOffset(android.graphics.Point)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/graphics/Point.html anchorOffset)` Sets the offset of the anchor object that the popover is anchored to. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setAutoCloseEnabled(boolean)(boolean autoCloseEnabled)` Sets whether the popover is auto-closed when the anchor is occluded. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setAutoPanEnabled(boolean)(boolean autoPanEnabled)` Sets whether the popover is auto-pan when the anchor is occluded. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setContent(android.view.View)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html content)` Sets the View object that is used as the content of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setPopoverStyle(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 popoverStyle)` The style of the popover. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#setPositionAnchor(com.google.android.gms.maps3d.model.Anchorable)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Anchorable positionAnchor)` Sets the anchor object that the popover is anchored to. |

| ### Extension functions |
|---|---|
| `final void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ValidatorsKt.https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions#(com.google.android.gms.maps3d.model.PopoverOptions).validate()(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions receiver)` Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` object. |

## Public fields

### altitudeMode

```
@AltitudeMode
public int altitudeMode
```

### anchorOffset

```
public @Nullable Point anchorOffset
```

### autoCloseEnabled

```
public boolean autoCloseEnabled
```

### autoPanEnabled

```
public boolean autoPanEnabled
```

### content

```
public @Nullable View content
```

### popoverStyle

```
public PopoverStyle popoverStyle
```

### positionAnchor

```
public Anchorable positionAnchor
```

## Public constructors

### PopoverOptions

```
public PopoverOptions()
```

Default constructor for PopoverOptions.

## Public methods

### getAltitudeMode

```
@AltitudeMode
public int getAltitudeMode()
```

The altitude mode of the popover.

### getAnchorOffset

```
public @Nullable Point getAnchorOffset()
```

The offset of the anchor object that the popover is anchored to.

### getAutoCloseEnabled

```
public boolean getAutoCloseEnabled()
```

Whether the popover is auto-closed when the anchor is occluded.

### getAutoPanEnabled

```
public boolean getAutoPanEnabled()
```

Whether the popover is auto-pan when the anchor is occluded.

### getContent

```
public @Nullable View getContent()
```

The View object that is used as the content of the popover.

### getPopoverStyle

```
public PopoverStyle getPopoverStyle()
```

The style of the popover.

### getPositionAnchor

```
public Anchorable getPositionAnchor()
```

The anchor object that the popover is anchored to.

### setAltitudeMode

```
public PopoverOptions setAltitudeMode(@AltitudeMode int altitudeMode)
```

The altitude mode of the popover.

### setAnchorOffset

```
public PopoverOptions setAnchorOffset(@Nullable Point anchorOffset)
```

Sets the offset of the anchor object that the popover is anchored to.

### setAutoCloseEnabled

```
public PopoverOptions setAutoCloseEnabled(boolean autoCloseEnabled)
```

Sets whether the popover is auto-closed when the anchor is occluded.

### setAutoPanEnabled

```
public PopoverOptions setAutoPanEnabled(boolean autoPanEnabled)
```

Sets whether the popover is auto-pan when the anchor is occluded.

### setContent

```
public PopoverOptions setContent(@Nullable View content)
```

Sets the View object that is used as the content of the popover.

### setPopoverStyle

```
public PopoverOptions setPopoverStyle(PopoverStyle popoverStyle)
```

The style of the popover.

### setPositionAnchor

```
public PopoverOptions setPositionAnchor(Anchorable positionAnchor)
```

Sets the anchor object that the popover is anchored to.

## Extension functions

### ValidatorsKt.validate

```
public final void ValidatorsKt.validate(@NonNull PopoverOptions receiver)
```

Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` object.

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/PopoverOptions` is not valid. |