ConsumerGoogleMap.ConsumerMapReadyCallback

  • ConsumerMapReadyCallback is an abstract class that provides a callback when a ConsumerGoogleMap is ready to use.

  • It includes a public constructor ConsumerMapReadyCallback() for creating instances.

  • The onConsumerMapReady() method is called when the ConsumerGoogleMap is available and its associated ConsumerMapFragment or ConsumerMapView is ready, guaranteeing map layout.

  • This callback differs from the Maps SDK's OnMapReadyCallback by waiting for map layout before being invoked.

public static abstract class ConsumerGoogleMap.ConsumerMapReadyCallback extends Object

Callback to get a handle to ConsumerGoogleMap.

Public Constructor Summary

Public Method Summary

abstract void
onConsumerMapReady(ConsumerGoogleMap consumerGoogleMap)
Called when the ConsumerGoogleMap is available and its associated ConsumerMapFragment or ConsumerMapView is ready to use.

Inherited Method Summary

Public Constructors

public ConsumerMapReadyCallback ()

Public Methods

public abstract void onConsumerMapReady (ConsumerGoogleMap consumerGoogleMap)

Called when the ConsumerGoogleMap is available and its associated ConsumerMapFragment or ConsumerMapView is ready to use.

This guarantees that the map has undergone layout. This behavior is different from OnMapReadyCallback in the Maps SDK, which doesn't wait for the map to undergo layout.

Parameters
consumerGoogleMap a non-null ConsumerGoogleMap associated with the ConsumerMapFragment or ConsumerMapView.