# Popover

# Popover


```
public final class Popover
```

<br />

*** ** * ** ***

A representation of a popover object in a 3D map.

## Summary

| ### Public methods |
|---|---|
| `final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getAltitudeMode()()` The altitude mode of the anchor object that the popover is anchored to. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getAnchorId()()` The id of the anchor object that the popover is anchored to. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.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/Popover#getAnchorOffset()()` The offset of the anchor object that the popover is anchored to. |
| `final boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getAutoCloseEnabled()()` Whether the popover is auto-closed when the anchor is occluded. |
| `final boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getAutoPanEnabled()()` Whether the popover is auto-pan when the anchor is occluded. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html Function0<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getAutoPanFn()()` The function to update the camera position when the popover is shown the first time auto-pan is enabled. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.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/Popover#getContent()()` The content of the popover. |
| `final @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/Anchorable` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getPositionAnchor()()` The anchor object that the popover is anchored to. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html Function0<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getRemoveFn()()` The function to remove the popover from the map. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#hide()()` Hides the popover. |
| `final boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#getIsVisible()()` Whether the popover is visible on the screen. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#remove()()` Removes the popover from the map. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#show()()` Shows the popover. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Popover#toggle()()` Toggles the visibility of the popover. |

## Public methods

### getAltitudeMode

```
public final int getAltitudeMode()
```

The altitude mode of the anchor object that the popover is anchored to.

### getAnchorId

```
public final @NonNull String getAnchorId()
```

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

### getAnchorOffset

```
public final @NonNull Point getAnchorOffset()
```

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

### getAutoCloseEnabled

```
public final boolean getAutoCloseEnabled()
```

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

### getAutoPanEnabled

```
public final boolean getAutoPanEnabled()
```

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

### getAutoPanFn

```
public final @NonNull Function0<Unit> getAutoPanFn()
```

The function to update the camera position when the popover is shown the first time auto-pan is enabled.

### getContent

```
public final @NonNull View getContent()
```

The content of the popover.

### getPositionAnchor

```
public final @NonNull Anchorable getPositionAnchor()
```

The anchor object that the popover is anchored to.

### getRemoveFn

```
public final @NonNull Function0<Unit> getRemoveFn()
```

The function to remove the popover from the map.

### hide

```
@UiThread
public final void hide()
```

Hides the popover.

### isVisible

```
public final boolean isVisible()
```

Whether the popover is visible on the screen.

### remove

```
@UiThread
public final void remove()
```

Removes the popover from the map.

### show

```
@UiThread
public final void show()
```

Shows the popover.

### toggle

```
@UiThread
public final void toggle()
```

Toggles the visibility of the popover.