GuidanceAnnouncement

public struct GuidanceAnnouncement : Equatable

Fine-grained announcement points, each with its own unique id, message and type.

Important

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

Lifecycle

  • Initializer.

    Declaration

    Swift

    public init(
        id: UUID = UUID(),
        language: String,
        message: String,
        messagePhonetics: Phonetics? = nil,
        announcementType: AnnouncementType
    ) throws

    Parameters

    id

    The unique ID of the announcement.

    language

    The language of the [message] as an IETF language tag, i.e., a dash-separated two-letter ISO-639 language code, and a two-letter ISO 3166 country code. Example: “en-US”

    message

    A verbal message for the maneuver.

    messagePhonetics

    Phonetic strings of all of the readable [Instruction]

    announcementType

    Type of the announcement.

  • Initializer.

    Declaration

    Swift

    public init(announcement: Announcement) throws

    Parameters

    announcement

    announcement object used as a source of data for creating a GuidanceAnnouncement object.

Public

  • id

    The unique ID of the announcement.

    Declaration

    Swift

    public let id: UUID
  • The language of the [message] as an IETF language tag, i.e., a dash-separated two-letter ISO-639 language code, and a two-letter ISO 3166 country code. Example: “en-US”

    Declaration

    Swift

    public let language: String
  • A verbal message for the maneuver.

    Declaration

    Swift

    public internal(set) var message: String { get }
  • Phonetic strings of all of the readable [Instruction]

    Declaration

    Swift

    public let messagePhonetics: Phonetics?
  • Type of the announcement.

    Declaration

    Swift

    public let announcementType: AnnouncementType