SpatialAnchor.RawCoordinateSystemAdjusted Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the device adjusts the anchor's precise location, which updates the RawCoordinateSystem.
// Register
event_token RawCoordinateSystemAdjusted(TypedEventHandler<SpatialAnchor, SpatialAnchorRawCoordinateSystemAdjustedEventArgs const&> const& handler) const;
// Revoke with event_token
void RawCoordinateSystemAdjusted(event_token const* cookie) const;
// Revoke with event_revoker
SpatialAnchor::RawCoordinateSystemAdjusted_revoker RawCoordinateSystemAdjusted(auto_revoke_t, TypedEventHandler<SpatialAnchor, SpatialAnchorRawCoordinateSystemAdjustedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialAnchor,SpatialAnchorRawCoordinateSystemAdjustedEventArgs> RawCoordinateSystemAdjusted;
function onRawCoordinateSystemAdjusted(eventArgs) { /* Your code */ }
spatialAnchor.addEventListener("rawcoordinatesystemadjusted", onRawCoordinateSystemAdjusted);
spatialAnchor.removeEventListener("rawcoordinatesystemadjusted", onRawCoordinateSystemAdjusted);
- or -
spatialAnchor.onrawcoordinatesystemadjusted = onRawCoordinateSystemAdjusted;
Public Custom Event RawCoordinateSystemAdjusted As TypedEventHandler(Of SpatialAnchor, SpatialAnchorRawCoordinateSystemAdjustedEventArgs)
Event Type
Remarks
The event arguments contain a transform representing the adjustment that was made.