GuidanceNavigator.AudioNotificationRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當音訊通知適合流覽指引時發生,例如在即將結束的回合或結束之前。
注意
此 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 來提供您自己的音訊通知。