Skip to main content
Version: 1.x

Interface: OverlayDetection

A single occurrence of an overlay interrupting an action.

Example​

const detection: OverlayDetection = handler.detections[0];
logger.info(detection.rule); // 'unexpected-dialog'

Properties​

dismissed​

readonly dismissed: boolean

Whether a dismiss function ran successfully.


error?​

readonly optional error?: string

Message from a failed dismissal, when one occurred.


rule​

readonly rule: string

Name of the rule that fired.


text​

readonly text: string

Trimmed text content of the overlay, for diagnosis.