Click or drag to resize

AnnouncerPlayItem Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A complete phrase to be played (comprised of sound files). To create a PlayItem use one of the WaveAnnouncer's CreatePlayItem Overload.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.Navigation.AnnouncementsAnnouncerPlayItem

Namespace:  Telogis.GeoBase.Navigation.Announcements
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class PlayItem

The AnnouncerPlayItem type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Converts the AnnouncerPlayItem to a human-readable string representation.
(Overrides ObjectToString.)
Top
Examples
C#
XmlWaveAnnouncer xwa = new XmlWaveAnnouncer();

// To play a sound file in the langs folder e.g. the ReachDest.wav file
WaveAnnouncer.PlayItem p1 = xwa.CreatePlayItem("ReachDest");
xwa.Play(p1);

// To play a phrase from a series of sound files in the langs folder 
// e.g. the phrase "Turn left in one hundred and twenty meters"
WaveAnnouncer.PlayItem pi = xwa.CreatePlayItem("TurnL in 100 and 20 meters");
xwa.Play(pi);

// To play an announcement using the XmlWaveAnnouncer's messages bundle
// e.g. Arrival announcement
WaveAnnouncer.PlayItem p2 = xwa.CreatePlayItem("Announcements", "gb_arrived", null);
xwa.Play(p2);
See Also