Instance Method

didUpdateFocusInContext:withAnimationCoordinator:

Called immediately after the system updates the focus to a new view.

Required.

Declaration

- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator;

Parameters

context

An instance of UIFocusUpdateContext containing metadata of the focus related update.

coordinator

An instance of UIFocusAnimationCoordinator used for coordinating focus-related animations.

Discussion

After the focus is updated to a new view, the focus engine calls this method on all focus environments that contain either the previously focused view, the next focused view, or both, in ascending order. You should override this method to update your app’s state in response to changes in focus. Use the provided animation coordinator to animate changes in visual appearance related to the update. For more information on animation coordinators, see UIFocusAnimationCoordinator.