Navigation
API > API/Plugins > API/Plugins/ScreenReader > API/Plugins/ScreenReader/FScreenReaderAnnouncement
Description
A static function that determines if one announcement can be interrupted by another based on a provided interruption policy.true
| Name | CanBeInterruptedBy |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ScreenReader/Source/ScreenReader/Public/Announcement/ScreenReaderAnnouncement.h |
| Include Path | #include "Announcement/ScreenReaderAnnouncement.h" |
template<typename InterruptionPolicy>
static bool CanBeInterruptedBy
(
const FScreenReaderAnnouncement & Interruptee,
const FScreenReaderAnnouncement & Interrupter,
const InterruptionPolicy & InInterruptionPolicy
)
Returns true if the Interruptee can be interrupted by the Interrupter based on the passed in interruption policy. Else returns false.
Parameters
| Name | Remarks |
|---|---|
| Interruptee | The announcement that the Interruptor will try to interrupt |
| Interrupter | The announcement that is trying to interrupt Interruptee |
| InInterruptionPolicy | The policy used to determine if the Interruptee can be interrupted by the Interrupter. Users can create their own interruption policies that satisfy the interface provided by FDefaultInterruptionPolicy. |