在iOS应用中获取所有选定的辅助功能选项 [英] Get all selected Accessibility Options in iOS app
本文介绍了在iOS应用中获取所有选定的辅助功能选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检查用户的辅助功能设置,例如字体大小,反色以及所有相关的设置.
I would like to check the user's accessibility settings like font size, inverted colors, and all the ones that are relevant.
我想这样做是为了评估和评估如何根据用户使用的辅助功能设置来改善我的用户体验.
I want to do this to evaluate and asses how to better my user experience based on the accessibility settings that users are using.
通过在线快速搜索,我可以找到Android的 getResources()
api,但iOS找不到
I could find the getResources()
api for Android but nothing for iOS through a quick search online
推荐答案
您可能需要单独检查其中的一些.
You might need to check for some of them individually.
一些例子:
语音是否正在运行
UIAccessibilityIsVoiceOverRunning()
让用户倒置颜色:
UIAccessibilityIsInvertColorsEnabled()
UIAccessibilityIs
....
这篇关于在iOS应用中获取所有选定的辅助功能选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文