Share via


CameraOcclusionInfo.StateChanged Event

Definition

Raised when the occlusion state of the camera device changes.

// Register
event_token StateChanged(TypedEventHandler<CameraOcclusionInfo, CameraOcclusionStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CameraOcclusionInfo::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<CameraOcclusionInfo, CameraOcclusionStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<CameraOcclusionInfo,CameraOcclusionStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
cameraOcclusionInfo.addEventListener("statechanged", onStateChanged);
cameraOcclusionInfo.removeEventListener("statechanged", onStateChanged);
- or -
cameraOcclusionInfo.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of CameraOcclusionInfo, CameraOcclusionStateChangedEventArgs) 

Event Type

Remarks

Get the updated occlusion state of the camera by accessing the State property of the CameraOcclusionStateChangedEventArgs passed into the event handler.

Applies to

See also