Share via


CameraOcclusionState.IsOcclusionKind(CameraOcclusionKind) Method

Definition

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

Boolean

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.

Applies to

See also