Freigeben über


GuidanceNavigator.AudioNotificationRequested Ereignis

Definition

Tritt auf, wenn Audiobenachrichtigungen für Navigationsanleitungen geeignet sind, z. B. vor einer bevorstehenden Kurve oder Beendigung.

Anmerkung

Diese API ist nicht für alle Windows-Apps verfügbar. Sofern Ihr Entwicklerkonto nicht speziell von Microsoft bereitgestellt wird, schlagen Aufrufe dieser API zur Laufzeit fehl. Weitere Informationen zum Windows.Services.Maps.Guidance Namespace können Sie mit Ihrem Microsoft-Kontoteammitarbeiter verwenden.

// Register
event_token AudioNotificationRequested(TypedEventHandler<GuidanceNavigator, GuidanceAudioNotificationRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void AudioNotificationRequested(event_token const* cookie) const;

// Revoke with event_revoker
GuidanceNavigator::AudioNotificationRequested_revoker AudioNotificationRequested(auto_revoke_t, TypedEventHandler<GuidanceNavigator, GuidanceAudioNotificationRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,GuidanceAudioNotificationRequestedEventArgs> AudioNotificationRequested;
function onAudioNotificationRequested(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("audionotificationrequested", onAudioNotificationRequested);
guidanceNavigator.removeEventListener("audionotificationrequested", onAudioNotificationRequested);
- or -
guidanceNavigator.onaudionotificationrequested = onAudioNotificationRequested;
Public Custom Event AudioNotificationRequested As TypedEventHandler(Of GuidanceNavigator, GuidanceAudioNotificationRequestedEventArgs) 

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.10586.0)
Windows Mobile Extension SDK (eingeführt in 10.0.10586.0)
Windows Team Extension SDK (eingeführt in 10.0.14393.0)
API contract
Windows.Services.Maps.GuidanceContract (eingeführt in v2.0)

Hinweise

Die Registrierung zum Behandeln dieses Ereignisses deaktiviert automatische Audiobenachrichtigungen. Verwenden Sie die GuidanceAudioNotificationRequestedEventArgs-, um Eigene Audiobenachrichtigungen bereitzustellen.

Gilt für: