Share via


HolographicSpace.CameraRemoved Event

Definition

Occurs when a HolographicCamera is removed from the current HolographicSpace.

// Register
event_token CameraRemoved(TypedEventHandler<HolographicSpace, HolographicSpaceCameraRemovedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
HolographicSpace::CameraRemoved_revoker CameraRemoved(auto_revoke_t, TypedEventHandler<HolographicSpace, HolographicSpaceCameraRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<HolographicSpace,HolographicSpaceCameraRemovedEventArgs> CameraRemoved;
function onCameraRemoved(eventArgs) { /* Your code */ }
holographicSpace.addEventListener("cameraremoved", onCameraRemoved);
holographicSpace.removeEventListener("cameraremoved", onCameraRemoved);
- or -
holographicSpace.oncameraremoved = onCameraRemoved;
Public Custom Event CameraRemoved As TypedEventHandler(Of HolographicSpace, HolographicSpaceCameraRemovedEventArgs) 

Event Type

Remarks

Apps can use this event to tear down any per-camera resources they may have set up during CameraAdded.

The system will no longer require that the app render to this camera, starting in the next frame after this event.

If you take a deferral and you've specified the D3D11_CREATE_DEVICE_SINGLETHREADED flag on your device, be sure to explicitly continue any work you spin off on your single Direct3D thread to avoid undefined behavior.

Applies to