The application could use TTS directly, so this kind of application
does not want screen-reader to read for it, even though it should
emit atspi event such as 'focused' for another AT-Client including
the Aurum.
Change-Id: I7106a4e7eb5cb7a42ef347d32ffbc01eda12fce9
else if (autoInitState == AutoInitState::ENABLED)
{
bridge = CreateBridge();
+
+ /* check environment variable for suppressing screen-reader */
+ const char *envSuppressScreenReader = Dali::EnvironmentVariable::GetEnvironmentVariable(DALI_ENV_SUPPRESS_SCREEN_READER);
+ if (envSuppressScreenReader && std::atoi(envSuppressScreenReader) != 0)
+ {
+ bridge->SuppressScreenReader(true);
+ }
+
return bridge;
}
#define DALI_ENV_DISABLE_ATSPI "DALI_DISABLE_ATSPI"
+#define DALI_ENV_SUPPRESS_SCREEN_READER "DALI_SUPPRESS_SCREEN_READER"
+
} // namespace Adaptor
} // namespace Internal