abstract fun onAnnouncementGenerated(announcement: GuidanceAnnouncement, shouldPlay: Boolean)

Called when an announcement about the upcoming maneuver is generated.

The announcement is generated based on the distance to maneuver, current instruction, and the next instruction. Configure the announcement verbosity by changing the property GuidanceEngine.announcementMode. If the property GuidanceEngine.announcementsEnabled is set to false, this method will not be invoked.

Important: This is a Public Preview API. It may be changed or removed at any time.



GuidanceAnnouncement about the upcoming maneuver.


Whether the announcement should be triggered.