CameraOcclusionState.IsOcclusionKind(CameraOcclusionKind) Method
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.
Gets a value than indicates whether the current occlusion state is of the specified kind.
public:
virtual bool IsOcclusionKind(CameraOcclusionKind occlusionKind) = IsOcclusionKind;
bool IsOcclusionKind(CameraOcclusionKind const& occlusionKind);
public bool IsOcclusionKind(CameraOcclusionKind occlusionKind);
function isOcclusionKind(occlusionKind)
Public Function IsOcclusionKind (occlusionKind As CameraOcclusionKind) As Boolean
Parameters
- occlusionKind
- CameraOcclusionKind
A member of the CameraOcclusionKind enumeration specifying the kind of occlusion being queried.
Returns
bool
True if the current occlusion is of the specified kind; otherwise, false.
Remarks
A device may not support any or all occlusion types. If an occlusion type is unsupported, IsOcclusionKind will never return true for that occlusion type. Determine if an occlusion kind is supported by the camera device by calling IsOcclusionKindSupported.