identifier property
Provides an identifier for the semantics node in native accessibility hierarchy.
This value is not exposed to the users of the app.
It's usually used for UI testing with tools that work by querying the native accessibility, like UIAutomator, XCUITest, or Appium.
On Android, this is used for AccessibilityNodeInfo.setViewIdResourceName
.
It'll be appear in accessibility hierarchy as resource-id
.
On iOS, this will set UIAccessibilityElement.accessibilityIdentifier
.
Implementation
String get identifier => _identifier;
Implementation
set identifier(String identifier) {
_identifier = identifier;
_hasBeenAnnotated = true;
}