This contribution investigates how cross-platform development frameworks (CPDF) support the creation of mobile applications that are accessible to people with visual impairments through screen readers. We first systematically analyze screen-reader APIs available in native iOS and Android, and we examine whether and at what level the same functionalities are available in two popular CPDF: Xamarin and React Native. This analysis unveils that there are many functionalities shared between native iOS and Android APIs, but most of them are not available in React Native or Xamarin. In particular, not even all basic APIs are exposed by the examined CPDF. Accessing the unavailable APIs is still possible, but it requires an additional effort by the developers who need to know native APIs and to write platform specific code, hence partially negating the advantages of CPDF. To address this problem, we consider a representative set of native APIs that cannot be directly accessed from React Native and Xamarin and show sample implementations for accessing them.
翻译:本文调查跨平台发展框架(CPDF)如何通过屏幕阅读器支持创建视觉障碍者可以使用的移动应用程序。 我们首先系统分析本地iOS和Android提供的屏幕阅读器API, 并研究两种广受欢迎的CPDF: Xamarin 和 React Indom (Ract Indom) 中是否和在何种级别有相同的功能。 此分析揭示了本地iOS 和Android API 之间有许多共同功能, 但大多数功能无法在 React Indom 或 Xamarin 中找到。 特别是,经检查的CPDF甚至没有触及所有基本的API。 访问无法使用的API 仍然有可能, 但它需要开发者做出额外的努力,他们需要了解本地API 并撰写平台特定代码, 从而部分否定CPDF 的优势。 为解决这一问题,我们考虑一组具有代表性的本地API,无法直接从 React Intal 和 Xamarin (Xamarin) 中获取, 并展示访问它们的样本执行情况。