GuidanceNavigator.Rerouted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在导航指南已重新路由时发生。
注意
此 API 并非适用于所有 Windows 应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则对此 API 的调用将在运行时失败。 有关 Windows.Services.Maps.Guidance 命名空间的详细信息,请与 Microsoft 帐户团队代表合作。
// Register
event_token Rerouted(TypedEventHandler<GuidanceNavigator, GuidanceReroutedEventArgs const&> const& handler) const;
// Revoke with event_token
void Rerouted(event_token const* cookie) const;
// Revoke with event_revoker
GuidanceNavigator::Rerouted_revoker Rerouted(auto_revoke_t, TypedEventHandler<GuidanceNavigator, GuidanceReroutedEventArgs const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,GuidanceReroutedEventArgs> Rerouted;
function onRerouted(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("rerouted", onRerouted);
guidanceNavigator.removeEventListener("rerouted", onRerouted);
- or -
guidanceNavigator.onrerouted = onRerouted;
Public Custom Event Rerouted As TypedEventHandler(Of GuidanceNavigator, GuidanceReroutedEventArgs)
事件类型
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈