最新消息:20210917 已从crifan.com换到crifan.org

【已解决】iOS中的元素的accessible和accesibility的含义

iOS crifan 646浏览 0评论
之前研究WebDriverAgent的源码期间,就不是很明白,元素属性中的 accessible的含义
折腾:
【未解决】抓包iOS的app逻辑优化:如何判断是否是EditText
期间,另外,看到有:
refer/WebDriverAgent/WebDriverAgentTests/IntegrationTests/FBElementAttributeTests.m
- (void)testTextFieldWithAccessibilityIdentifiersAttributes
{
  XCUIElement *element = self.testedApplication.textFields[@"aIdentifier"];
  XCTAssertTrue(element.exists);
  XCTAssertEqualObjects(element.wdType, @"XCUIElementTypeTextField");
  XCTAssertEqualObjects(element.wdName, @"aIdentifier");
  XCTAssertEqualObjects(element.wdLabel, @"aLabel");
  XCTAssertEqualObjects(element.wdValue, @"Value2");
}
-》突然感觉是:
或许之前说的 accessible 表示是:是否运行输入(或改变值?)
因为之前一直不知道 accessible 是什么意思
iOS element accessible
Grouping elements for better accessibility on iOS
On iOS, VoiceOver users can navigate a screen through a swipe right gesture. Doing so causes iOS to change accessibility focus to the next accessible element in your views’ accessibility hierarchy. By default, many UIKit elements declare themselves as accessibility elements, e.g. UILabel, UIButton, &c.
没太懂
UIAccessibilityElement – UIKit | Apple Developer Documentation
accessible
adj. 易接近的;可进入的;可理解的
UIAccessibility | Apple Developer Documentation
/Users/xxx/.pyenv/versions/3.8.0/Python.framework/Versions/3.8/lib/python3.8/site-packages/wda/__init__.py
            accessibilityContainer,
            accessible,
。。。
    # @property
    @cached_property
    def accessible(self):
        return self._wda_prop("accessible")
        # return self._prop("accessible")


    # @property
    @cached_property
    def accessibility_container(self):
        return self._wda_prop('accessibilityContainer')
        # return self._prop('accessibilityContainer')
还是不够清楚。
以后再说。
iOS   what is accessible
iOS Accessibility: Getting Started | raywenderlich.com
https://www.raywenderlich.com/6827616-ios-accessibility-getting-started
Accessibility on iOS – Apple Developer
Accessibility
n. 易接近;可亲;可以得到
Accessibility on iOS
With built-in accessibility features, accessibility APIs, and developer tools, iOS provides an extraordinary opportunity to deliver a superior mobile experience to every customer, including those with special needs. Award-winning features include VoiceOver — the revolutionary screen reader for blind and low vision users, Switch Control, playback of closed captioned or audio described video, Guided Access, Text to Speech, and more.
感觉倒像是:
方便非普通人 更容易访问和使用?
比如 盲人,或者听力不好的人等等?
好像又不是,只是:方便用户操作 访问 能用得上 某些功能?
Introduction – Accessibility – Human Interface Guidelines – Apple Developer
Accessibility
People use Apple’s accessibility features, such as reduced transparency, VoiceOver, and increased text size, to personalize how they interact with their devices in ways that work for them. An accessible app supports such personalizations by design and gives everyone a great user experience, regardless of their capabilities or how they use their devices.
透明度降低
VoiceOver
增大字体
-》感觉都属于:可用性,易用性
给用户更多选择?
还是不够清晰,以后再说。
iOS Accessibility Tutorial: Tips on Making Your App More Accessible
Accessibility is one of those things that always seem to be at the bottom of the priority list for iOS apps. At first sight, making your app accessible seems like a lot of work for a small portion of your user base. In reality, this is completely false!
One out of six people in the world has some form of disability. This is a lot of people! But accessibility is not here only for disabilities. It’s also for people holding a cup of coffee or a crying baby. It can also be for a person that’s driving or walking around town and unable to safely look at your app. The need for accessibility can come in all forms, and it’s a lot more common than you think.
看来此处的 accessibility 指的就是:
提高可用性、易用性
  • 对于特殊人士:
    • 身体部分功能受限
      • 盲人等
  • 针对于特殊场景时,提高app可用性
    • 开车时,不方便看app -》 提供 把文字转语音 朗读处理 -》 就属于 易用了
总之:
在各种场景下,提高app可用性,易用性
XCode还内置了一个:Accessibility Inspector
截图举例
【后记 20200616】
201910433825.5 – 一种可公开的移动APP数据抓取方法 – SooPAT专利搜索
-》
申请公布号:CN110177139A
http://epub.sipo.gov.cn/tdcdesc.action?strWhere=CN110177139A
专利中提到的:
0037 本实施例中,所述手势模拟单元基于Autojs,Autojs是第三方开发的,由 Javascript脚本语言驱动,利用安卓系统无障碍服务,完成用户指定的各种手势操作的一 款开源程序。
安卓系统无障碍服务
创建自己的无障碍服务  |  Android 开发者  |  Android Developers
AccessibilityService
Android–>无障碍服务(AccessibilityService)开发指南(多用于抢红包,添加附近好友等功能)_<angcyo>菜鸟视角-CSDN博客
->Accessibility 指的是:无障碍
-》专指 为了方便 残障人士 使用,而做的事情?
构建无障碍服务|Android开发
“无障碍服务是一个为残疾人或可能暂时无法与设备完全互动的人提供用户界面扩展功能的应用程序。”
创建自己的无障碍服务  |  Android 开发者  |  Android Developers
“无障碍服务是一种应用,提供界面增强功能来协助残障用户或可能暂时无法与设备进行全面互动的用户。例如,正在开车、照顾孩子或参加喧闹聚会的用户可能需要其他或替代的界面反馈方式。”
果然是的

转载请注明:在路上 » 【已解决】iOS中的元素的accessible和accesibility的含义

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.186 seconds, using 23.35MB memory