GuidanceNavigator.AudioNotificationRequested イベント

定義

今後のターンや終了の前など、ナビゲーション ガイダンスにオーディオ通知が適している場合に発生します。

Note

この API は、すべての Windows アプリで使用できるわけではありません。 開発者アカウントが Microsoft によって特別にプロビジョニングされていない限り、この API の呼び出しは実行時に失敗します。 Windows.Services.Maps.Guidance 名前空間の詳細については、Microsoft アカウント チームの担当者にお問い合わせください。

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

イベントの種類

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.10586.0 で導入)
Windows Mobile Extension SDK (10.0.10586.0 で導入)
Windows Team Extension SDK (10.0.14393.0 で導入)
API contract
Windows.Services.Maps.GuidanceContract (v2.0 で導入)

注釈

このイベントを処理するために登録すると、自動オーディオ通知がオフになります。 GuidanceAudioNotificationRequestedEventArgs を使用して、独自のオーディオ通知を提供します。

適用対象