CameraOcclusionKind Enum
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.
Specifies the kind of occlusion that is blocking a camera.
public enum class CameraOcclusionKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
enum class CameraOcclusionKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
public enum CameraOcclusionKind
var value = Windows.Media.Devices.CameraOcclusionKind.lid
Public Enum CameraOcclusionKind
- Inheritance
-
CameraOcclusionKind
- Attributes
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|
Fields
Name | Value | Description |
---|---|---|
Lid | 0 | The camera is occluded by the lid of the device. |
CameraHardware | 1 | The camera is occluded by camera hardware. |
Remarks
A device may not support any or all occlusion types. If an occlusion type is unsupported, CameraOcclusionState.IsOcclusionKind will never return true for that occlusion type. Determine if an occlusion kind is supported by the camera device by calling IsOcclusionKindSupported.