Navigation
API > API/Plugins > API/Plugins/SlateScreenReader
The engine subsystem for the Slate screen reader. A screen reader is a framework that provides vision accessibility services for screen reader useres. A screen reader user is a single user of the screen reader framework and can be thought of as a user of a hardware device such as keyboard/mouse or a controller. Screen reader users must be registered with the screen reader framework for them to receive feedback from the accessibility services provided by the screen reader framework. This class should be the entryway for C++ programmers and BP useres alike to interact with the screen reader system. The subsystem must be activated before the screen reader services can be used. For C++ users, please retrieve the screen reader and interact with the screen reader users from there. Example: USlateScreenReaderEngineSubsystemGet().ActivateScreenReader(); // Registers a screen reader user with Id 0. A screen reader user should correspond to a hardware input device such as a keyboard or controller like FSlateUserUSlateScreenReaderEngineSubsystemGet().GetScreenReader()->RegisterUser(0); TSharedRef
| Name | USlateScreenReaderEngineSubsystem |
| Type | class |
| Header File | /Engine/Plugins/Experimental/SlateScreenReader/Source/SlateScreenReader/Public/SlateScreenReaderEngineSubsystem.h |
| Include Path | #include "SlateScreenReaderEngineSubsystem.h" |
Syntax
UCLASS ()
class USlateScreenReaderEngineSubsystem : public UEngineSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEngineSubsystem → USlateScreenReaderEngineSubsystem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USlateScreenReaderEngineSubsystem() |
SlateScreenReaderEngineSubsystem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~USlateScreenReaderEngineSubsystem() |
SlateScreenReaderEngineSubsystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ScreenReader | TSharedPtr< FScreenReaderBase > | ~ | SlateScreenReaderEngineSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ActivateScreenReader () |
Activates the underlying screen reader. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply ActivateUser
(
int32 InUserId |
Activates a screen reader user and fulfill requests for accessibility services such as text to speech that clients can make. | SlateScreenReaderEngineSubsystem.h |
|
void DeactivateScreenReader () |
Deactivates the underlying screen reader and prevents screen reader users from getting any accessible feedback via text to speech or using any other screen reader services. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply DeactivateUser
(
int32 InUserId |
Deactivates the screen reader and disables all announcement and text to speech services making them do nothing. | SlateScreenReaderEngineSubsystem.h |
|
TSharedRef< FScreenReaderBase > GetScreenReader() |
Returns the underlying screen reader | SlateScreenReaderEngineSubsystem.h | |
float GetSpeechRate
(
int32 InUserId |
Returns the rate text to speech will be speaking at for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
float GetSpeechVolume
(
int32 InUserId |
Returns the volume text to speech will be speaking at for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
bool IsScreenReaderActive () |
Returns true if the screen reader is currently active and accessibility services such as text to speech can be used by the screen reader users. | SlateScreenReaderEngineSubsystem.h |
|
bool IsSpeaking
(
int32 InUserId |
Returns true if the screen reader is speaking text to a particular user. | SlateScreenReaderEngineSubsystem.h |
|
bool IsSpeechMuted
(
int32 InUserId |
Returns true if text to speech for a screen reader user is muted. | SlateScreenReaderEngineSubsystem.h |
|
bool IsUserRegistered
(
int32 InUserId |
Returns true if the passed in screen reader user Id is already registered. Else false is returned. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply MuteSpeech
(
int32 InUserId |
Mutes the text to speech for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply RegisterUser
(
int32 InUserId |
Registers a provided user Id to the screen reader framework and allows the screen reader user to receive and respond to accessible events and accessible input. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply RequestSpeak
(
int32 InUserId, |
Requests an announcement to be spoken to the screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply RequestSpeakFocusedWidget
(
int32 InUserId |
Requests the information about the accessibility widget a user is focused on to be read out. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply SetSpeechRate
(
int32 InUserId, |
Sets the rate text to speech will be speaking at for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply SetSpeechVolume
(
int32 InUserId, |
Sets the volume text to speech will be speaking at for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply StopSpeaking
(
int32 InUserId |
Immediately stops speaking any currently spoken announcement for a particular screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply UnmuteSpeech
(
int32 InUserId |
Unmutes the text to speech for a screen reader user. | SlateScreenReaderEngineSubsystem.h |
|
FScreenReaderReply UnregisterUser
(
int32 InUserId |
Unregisters a provided user Id from the screen reader framework and deactivates the user. | SlateScreenReaderEngineSubsystem.h |
|
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
SlateScreenReaderEngineSubsystem.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
UEngineSubsystem. | SlateScreenReaderEngineSubsystem.h | |
virtual bool ShouldCreateSubsystem
(
UObject* Outer |
SlateScreenReaderEngineSubsystem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static USlateScreenReaderEngineSubsystem & Get() |
Convenience method to retrieve the screen reader engine subsystem. | SlateScreenReaderEngineSubsystem.h |
See Also
-
FScreenReaderBase
-
FScreenReaderUser
-
FScreenReaderAnnouncement