AI-generated Key Takeaways
-
GoogleMap.OnIndoorStateChangeListeneris a listener that monitors changes in indoor states within a Google Map and notifies events on the Android UI thread. -
It provides two methods:
onIndoorBuildingFocused()which is triggered when the focused building on the map changes, andonIndoorLevelActivated()which is called when the active level within a building changes. -
The focused building is determined by the building centered in the viewport or selected by the user, while the active level is the selected or visited level within a building.
-
These methods are only called after the relevant building data becomes available, ensuring accurate information is provided to the listener.
A listener for when the indoor state changes. Events are notified on the Android UI thread.
Public Method Summary
| abstract void |
onIndoorBuildingFocused()
The map maintains a notion of focused building, which is the building currently
centered in the viewport or otherwise selected by the user through the UI or the location
provider.
|
| abstract void |
onIndoorLevelActivated(IndoorBuilding building)
The map keeps track of the active level for each building which has been visited or
otherwise had a level selected.
|
Public Methods
public abstract void onIndoorBuildingFocused ()
The map maintains a notion of focused building, which is the building currently centered in the viewport or otherwise selected by the user through the UI or the location provider. This callback is called when the focused building changes.
This method will only be called after the building data has become available.
The focused building is not referenced as a parameter of this method due to synchronization issues: if multiple focus requests are handled, listeners may be notified out-of-order, so should rely on getFocusedBuilding() itself to provide the most up-to-date information. It is possible that more than one onIndoorBuildingFocused call will be made without the focused building actually changing.
public abstract void onIndoorLevelActivated (IndoorBuilding building)
The map keeps track of the active level for each building which has been visited or otherwise had a level selected. When that level changes, this callback will be triggered regardless of whether the building is focused or not. This callback is also called when the default level first becomes available.
This method will only be called after the building data has become available.
Parameters
| building | the building for which the active level has changed, never null. |
|---|