MFCameraOcclusionState enumeration (mfidl.h)

Specifies the occlusion state of a camera.

Syntax

typedef enum MFCameraOcclusionState {
  MFCameraOcclusionState_Open,
  MFCameraOcclusionState_OccludedByLid,
  MFCameraOcclusionState_OccludedByCameraHardware
} ;

Constants

 
MFCameraOcclusionState_Open
The camera is not occluded.
MFCameraOcclusionState_OccludedByLid
The camera is occluded by the lid of the device.
MFCameraOcclusionState_OccludedByCameraHardware
The camera is occluded by camera hardware.

Remarks

A value from this enumeration is returned by IMFCameraOcclusionStateReport::GetOcclusionState. To get the occlusion states that are supported on the current device, and therefore may be returned by GetOcclusionState, call IMFCameraOcclusionStateMonitor::GetSupportedStates.

Requirements

Requirement Value
Minimum supported client Windows Build 22000
Minimum supported server Windows Build 22000
Header mfidl.h

See also

IMFCameraOcclusionStateReport::GetOcclusionState

IMFCameraOcclusionStateMonitor::GetSupportedStates