共用方式為


MapScene.TargetCameraChanged 事件

定義

發生于地圖相機的最終位置已變更時。

// Register
event_token TargetCameraChanged(TypedEventHandler<MapScene, MapTargetCameraChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapScene::TargetCameraChanged_revoker TargetCameraChanged(auto_revoke_t, TypedEventHandler<MapScene, MapTargetCameraChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapScene,MapTargetCameraChangedEventArgs> TargetCameraChanged;
function onTargetCameraChanged(eventArgs) { /* Your code */ }
mapScene.addEventListener("targetcamerachanged", onTargetCameraChanged);
mapScene.removeEventListener("targetcamerachanged", onTargetCameraChanged);
- or -
mapScene.ontargetcamerachanged = onTargetCameraChanged;
Public Custom Event TargetCameraChanged As TypedEventHandler(Of MapScene, MapTargetCameraChangedEventArgs) 

事件類型

備註

在地圖動畫期間, ActualCamera 會定義地圖相機的目前位置, 而 TargetCamera 會定義相機的最終位置。

適用於