# OnMap3DViewReadyCallback

# OnMap3DViewReadyCallback


```
public interface OnMap3DViewReadyCallback
```

<br />

*** ** * ** ***

Callback interface for when the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView` is ready.

## Summary

| ### Public methods |
|---|---|
| `default void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/OnMap3DViewReadyCallback#onError(java.lang.Exception)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Exception.html error)` Called when there is an error while creating or loading the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView`. |
| `abstract void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/OnMap3DViewReadyCallback#onMap3DViewReady(com.google.android.gms.maps3d.GoogleMap3D)(@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/GoogleMap3D googleMap3D)` Called when the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView` is ready. |

## Public methods

### onError

```
default void onError(@NonNull Exception error)
```

Called when there is an error while creating or loading the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView`. The default implementation throws the `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html` back to the caller.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Exception.html error` | The `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html` that occurred. |

### onMap3DViewReady

```
abstract void onMap3DViewReady(@NonNull GoogleMap3D googleMap3D)
```

Called when the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView` is ready.

| Parameters |
|---|---|
| `@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/GoogleMap3D googleMap3D` | The `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/GoogleMap3D` instance associated with the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DView`. Use this instance to access the APIs to interact with the map. |