AnnouncementGenerator
public protocol AnnouncementGenerator
Responsible for generating announcements.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Checks if a
GuidanceAnnouncement
should be generated.Declaration
Swift
func shouldGenerate(parameters: AnnouncementGenerationParams) -> Bool
Parameters
parameters
announcement generation parameters
Return Value
The check result,
true
if an announcement should be generated,false
otherwise. -
Generates a
GuidanceAnnouncement
.Declaration
Swift
func generateAnnouncement(parameters: AnnouncementGenerationParams) throws -> GuidanceAnnouncement
Parameters
parameters
Announcement generation parameters.
Return Value
Generated
GuidanceAnnouncement
instance that should be announced at the current point on the route.