Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/IAccessibleWidget
Description
Retrieves the logical previous widget in the accessible widget hierarchy from this current widget. This is conceptually similar to shift tab navigation with the keyboard. This is primarily used for mobile devices to simulate the left swipe gesture for IOS Voiceover or Android Talkback. An example algorithm to find the previous widget in the hierarchy is as follows:
Find the previous sibling of the current widget and check if it has children.
If the previous sibling has children, we will call the last child of the previous sibling C. Recursively take the last child from C until a leaf is found. Return the leaf.
If the previous sibling has no children, return the previous sibling.
If the current widget has no previous sibling, we return the parent of the current widget.
| Name | GetPreviousWidgetInHierarchy |
| Type | function |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/Accessibility/GenericAccessibleInterfaces.h |
| Include Path | #include "GenericPlatform/Accessibility/GenericAccessibleInterfaces.h" |
TSharedPtr < IAccessibleWidget > GetPreviousWidgetInHierarchy()
The logical previous widget in the accessible widget hierarchy.