GuidanceAnnouncement
public struct GuidanceAnnouncement : Equatable
Guidance announcement relating to a maneuver during navigation. The announcement text message is provided in both Speech Synthesis Markup Language (SSML) and plain-text formats.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a guidance announcement with the specified parameters.
Declaration
Swift
public init( id: UUID = UUID(), language: Locale, message: String, messagePhonetics: Phonetics? = nil, announcementType: AnnouncementType ) throwsParameters
idThe ID of the announcement.
languageThe language of the
messageasLocale.messageA verbal message for the maneuver.
messagePhoneticsPhonetic strings of all of the readable
Instructionproperties.announcementTypeType of the announcement.
-
Initializes a guidance announcement from a route announcement.
Declaration
Swift
public init(announcement: Announcement, language: Locale) throwsParameters
announcementAnnouncementinstance used as a source of data for creating aGuidanceAnnouncementinstance.languageThe language of the
messageasLocale. Example of identifier: “en-US”.
-
The unique ID of the announcement.
Declaration
Swift
public let id: UUID -
The language of the
messageasLocale.Declaration
Swift
public let language: Locale -
A verbal message for the maneuver.
Declaration
Swift
public private(set) var message: String { get } -
Phonetic strings of all of the readable
Instructionproperties.Declaration
Swift
public let messagePhonetics: Phonetics? -
Type of the announcement.
Declaration
Swift
public let announcementType: AnnouncementType -
A verbal message for the maneuver in SSML format.
Declaration
Swift
public internal(set) var ssmlMessage: String { get } -
A verbal message for the maneuver in plain text.
Declaration
Swift
public internal(set) var plainTextMessage: String { get } -
An attributed string that contains a verbal message for the manuever.
Declaration
Swift
public internal(set) var attributedStringMessage: NSAttributedString? { get }
GuidanceAnnouncement Structure Reference