AccessibilityNodeInfo.UniqueId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the unique id of the node. -or- Sets the unique id to act as a key to identify the node.
public virtual string? UniqueId { [Android.Runtime.Register("getUniqueId", "()Ljava/lang/String;", "GetGetUniqueIdHandler", ApiSince=33)] get; [Android.Runtime.Register("setUniqueId", "(Ljava/lang/String;)V", "GetSetUniqueId_Ljava_lang_String_Handler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getUniqueId", "()Ljava/lang/String;", "GetGetUniqueIdHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setUniqueId", "(Ljava/lang/String;)V", "GetSetUniqueId_Ljava_lang_String_Handler", ApiSince=33)>]
member this.UniqueId : string with get, set
Property Value
The unique id
- Attributes
Remarks
Property getter documentation:
Gets the unique id of the node.
Java documentation for android.view.accessibility.AccessibilityNodeInfo.getUniqueId()
.
Property setter documentation:
Sets the unique id to act as a key to identify the node. If the node instance is replaced after refreshing the layout, calling this API to assign the same unique id to the new alike node can help accessibility service to identify it.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.