getFocusedRect
Source set: Android
override fun getFocusedRect(rect: Rect)
Since this view has its own concept of internal focus, it needs to report that to the view system for accurate focus searching and so ViewRootImpl will scroll correctly.
getFocusedRect
Source set: Common
public fun FocusTargetModifierNode.getFocusedRect(): Rect?
Calculates the rectangular area in this node's coordinates that corresponds to the focus area of the focused node under this FocusTargetModifierNode, including itself.
This function returns null when;
- This node is not focused and there is no focused descendant.
- This node is detached from the composition hierarchy.