DartTolk class

Bindings for the Tolk screen reader library

Constructors

DartTolk(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
DartTolk.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Tolk_Braille(Pointer<WChar> str) bool
Name: Tolk_Braille Description: Brailles text through the current screen reader driver, if one is set and supports braille output. If none is set or if it encountered an error, tries to detect the currently active screen reader before brailling the given text. Use this function only if you specifically need to braille text through the current screen reader without also speaking it. Not all screen reader drivers may support this functionality. Therefore, use Tolk_Output whenever possible. You should call Tolk_Load once before using this function. Parameters: str: text to braille. Returns: true on success, false otherwise.
Tolk_DetectScreenReader() Pointer<WChar>
Name: Tolk_DetectScreenReader Description: Returns the common name for the currently active screen reader driver, if one is set. If none is set, tries to detect the currently active screen reader before looking up the name. If no screen reader is active, NULL is returned. Note that the drivers hard-code the common name, it is not requested from the screen reader itself. You should call Tolk_Load once before using this function. Parameters: None. Returns: A Unicode string representation of the common name on success, NULL otherwise.
Tolk_HasBraille() bool
Name: Tolk_HasBraille Description: Tests if the current screen reader driver supports braille output, if one is set. If none is set, tries to detect the currently active screen reader before testing for braille support. You should call Tolk_Load once before using this function. Parameters: None. Returns: true if the current screen reader driver supports braille, false otherwise.
Tolk_HasSpeech() bool
Name: Tolk_HasSpeech Description: Tests if the current screen reader driver supports speech output, if one is set. If none is set, tries to detect the currently active screen reader before testing for speech support. You should call Tolk_Load once before using this function. Parameters: None. Returns: true if the current screen reader driver supports speech, false otherwise.
Tolk_IsLoaded() bool
Name: Tolk_IsLoaded Description: Tests if Tolk has been initialized. Parameters: None. Returns: true if Tolk has been initialized, false otherwise.
Tolk_IsSpeaking() bool
Name: Tolk_IsSpeaking Description: Tests if the screen reader associated with the current screen reader driver is speaking, if one is set and supports querying for status information. If none is set, tries to detect the currently active screen reader before testing if it is speaking. You should call Tolk_Load once before using this function. Parameters: None. Returns: true if text is being spoken by the screen reader, false otherwise.
Tolk_Load() → void
Name: Tolk_Load Description: Initializes Tolk by loading and initializing the screen reader drivers and setting the current screen reader driver, provided at least one of the supported screen readers is active. Also initializes COM if it has not already been initialized on the calling thread. Calling this function more than once will only initialize COM. You should call this function before using the functions below. Use Tolk_IsLoaded to determine if Tolk has been initialized. Parameters: None. Returns: None.
Tolk_Output(Pointer<WChar> str, bool interrupt) bool
Tolk_PreferSAPI(bool preferSAPI) → void
Name: Tolk_PreferSAPI Description: If auto-detection for SAPI has been turned on through Tolk_TrySAPI, sets if SAPI should be placed first (true) or last (false) in the screen reader detection list. Putting it last is the default and is good for using SAPI as a fallback option. Putting it first is good for ensuring SAPI is used even when a screen reader is running, but keep in mind screen readers will still be tried if SAPI is unavailable. This function triggers the screen reader detection process if needed. For best performance, you should call this function before calling Tolk_Load. Parameters: preferSAPI: whether or not to prefer SAPI over screen reader drivers in auto-detection. Returns: None.
Tolk_Silence() bool
Name: Tolk_Silence Description: Silences the screen reader associated with the current screen reader driver, if one is set and supports speech output. If none is set or if it encountered an error, tries to detect the currently active screen reader before silencing it. You should call Tolk_Load once before using this function. Parameters: None. Returns: true on success, false otherwise.
Tolk_Speak(Pointer<WChar> str, bool interrupt) bool
Tolk_TrySAPI(bool trySAPI) → void
Name: Tolk_TrySAPI Description: Sets if Microsoft Speech API (SAPI) should be used in the screen reader auto-detection process. The default is not to include SAPI. The SAPI driver will use the system default synthesizer, voice and soundcard. This function triggers the screen reader detection process if needed. For best performance, you should call this function before calling Tolk_Load. Parameters: trySAPI: whether or not to include SAPI in auto-detection. Returns: None.
Tolk_Unload() → void
Name: Tolk_Unload Description: Finalizes Tolk by finalizing and unloading the screen reader drivers and clearing the current screen reader driver, provided one was set. Also uninitializes COM on the calling thread. Calling this function more than once will only uninitialize COM. You should not use the functions below if this function has been called. Parameters: None. Returns: None.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited