AI-generated Key Takeaways
-
GMSIndoorDisplayDelegate
handles events related to indoor maps, such as changes to the active building or level. -
The delegate provides optional methods,
didChangeActiveBuilding
anddidChangeActiveLevel
, which are called when the active building or level is changed, respectively. -
When the active building changes,
didChangeActiveBuilding
is raised first, followed bydidChangeActiveLevel
to reflect the new building's active level. -
didChangeActiveLevel
is triggered for any changes to the active level, including explicit settings.
GMSIndoorDisplayDelegate
@protocol GMSIndoorDisplayDelegate <NSObject>
Delegate for events on GMSIndoorDisplay
.
-
Raised when the activeBuilding has changed. The activeLevel will also have already been updated for the new building, but
-didChangeActiveLevel:
will be raised after this method.Declaration
Swift
optional func didChangeActiveBuilding(_ building: GMSIndoorBuilding?)
Objective-C
- (void)didChangeActiveBuilding:(nullable GMSIndoorBuilding *)building;
-
Raised when the activeLevel has changed. This event is raised for all changes, including explicit setting of the property.
Declaration
Swift
optional func didChangeActiveLevel(_ level: GMSIndoorLevel?)
Objective-C
- (void)didChangeActiveLevel:(nullable GMSIndoorLevel *)level;