# FlyAroundOptions


```
public class FlyAroundOptions implements Parcelable
```

<br />

*** ** * ** ***

Represents the camera preset, fly around, in a 3D map.

## Summary

| ### Public fields |
|---|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Camera` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#center()` |
| `long` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#durationInMillis()` |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#rounds()` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#FlyAroundOptions(com.google.android.gms.maps3d.model.Camera,long,double)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Camera center, long durationInMillis, double rounds)` Constructor for FlyAroundOptions with parameters for required fields. |

| ### Public methods |
|---|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Camera` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#getCenter()()` The center of the camera. |
| `long` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#getDurationInMillis()()` The duration of the fly around animation in milliseconds. |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#getRounds()()` The number of times the fly around animation should be played. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#setCenter(com.google.android.gms.maps3d.model.Camera)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Camera center)` Sets the center of the camera. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#setDurationInMillis(long)(long durationInMillis)` Sets the duration of the fly around animation in milliseconds. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#setRounds(double)(double rounds)` Sets the number of times the fly around animation should be played. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

| ### 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/FlyAroundOptions#(com.google.android.gms.maps3d.model.FlyAroundOptions).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/FlyAroundOptions receiver)` Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions` object. |

### 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

### center

```
public Camera center
```

### durationInMillis

```
public long durationInMillis
```

### rounds

```
public double rounds
```

## Public constructors

### FlyAroundOptions

```
public FlyAroundOptions(Camera center, long durationInMillis, double rounds)
```

Constructor for FlyAroundOptions with parameters for required fields.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Camera center` | The center of the camera. |
| `long durationInMillis` | The duration of the fly around animation in milliseconds. |
| `double rounds` | The number of times the fly around animation should be played. |

## Public methods

### getCenter

```
public Camera getCenter()
```

The center of the camera.

### getDurationInMillis

```
public long getDurationInMillis()
```

The duration of the fly around animation in milliseconds.

### getRounds

```
public double getRounds()
```

The number of times the fly around animation should be played.

### setCenter

```
public void setCenter(Camera center)
```

Sets the center of the camera.

### setDurationInMillis

```
public void setDurationInMillis(long durationInMillis)
```

Sets the duration of the fly around animation in milliseconds.

### setRounds

```
public void setRounds(double rounds)
```

Sets the number of times the fly around animation should be played.

### writeToParcel

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

## Extension functions

### ValidatorsKt.validate

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

Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/FlyAroundOptions` 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/FlyAroundOptions` is not valid. |