getInfoContents

open fun getInfoContents(marker: MPIMarker): View

Returns only the contents to draw inside the map provider's own info-window frame, leaving the frame itself to the provider.

Used by the Google Maps adapter only, and only when getInfoWindow returns null. The Mapbox adapter never calls this — it renders the info window as a Mapbox view annotation, which has no frame to fill — so implementations that need to support both providers must put their content in getInfoWindow. Return null if you do not use it.

Return

the contents view, or null to leave the frame contents to the map provider.

Parameters

marker

the marker being selected; see getInfoWindow.