Share via


GuidanceNavigator.AudioNotificationRequested Event

Definition

Occurs when audio notifications are appropriate for navigational guidance, such as prior to an upcoming turn or exit.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

// 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) 

Event Type

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0)
Windows Team Extension SDK (introduced in 10.0.14393.0)
API contract
Windows.Services.Maps.GuidanceContract (introduced in v2.0)

Remarks

Registering to handle this event turns off automatic audio notifications. Use the GuidanceAudioNotificationRequestedEventArgs to provide your own audio notifications.

Applies to