OnMapReadyCallback | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public interface

# OnMapReadyCallback

com.google.android.gms.maps.OnMapReadyCallback

## Class Overview

Callback interface for when the map is ready to be used.

Once an instance of this interface is set on a `MapFragment` or `MapView` object, the `onMapReady(GoogleMap)` method is triggered when the map is ready to be used and provides a non-null instance of `GoogleMap`.

If Google Play services is not installed on the device, the user will be prompted to install it, and the `onMapReady(GoogleMap)` method will only be triggered when the user has installed it and returned to the app.

## Summary

Public Methods
abstract void | onMapReady(GoogleMap googleMap) Called when the map is ready to be used.

## Public Methods

#### public abstract void onMapReady (GoogleMap googleMap)

Called when the map is ready to be used.

##### Parameters

googleMap | A non-null instance of a GoogleMap associated with the `MapFragment` or `MapView` that defines the callback.