Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IFocusManager

interface IFocusManager
Extends com.amazon.apmf.IStandard Centralized interface providing access to focus-related functionality.

Methods

getFocusState()

IFocusState* getFocusState()
Gets the default implementation of the IFocusState interface.

Returns

IFocusState* The default implementation of the IFocusState interface.

getFocusNavigation()

IFocusNavigation* getFocusNavigation()
Gets the default implementation of the IFocusNavigation interface.

Returns

IFocusNavigation* The default implementation of the IFocusNavigation interface.

getFocusDelegate()

IFocusDelegate* getFocusDelegate()
Gets the default implementation of the IFocusDelegate interface.

Returns

IFocusDelegate* The default implementation of the IFocusDelegate interface.

addFocusChangeListener()

com.amazon.apmf.ISubscription* addFocusChangeListener(IView* view, IFocusChangeListener* focusChangeListener)
Adds focus change listener and returns an ISubscription object to it. Focus change events are used to track when a View gains or loses focus. Multiple focus change listeners can be added to the same View, and all registered listeners will be notified when the focus changes.

Parameters

view
IView* — Required The View for which to set the focus change listener.
focusChangeListener
IFocusChangeListener* — Required Client’s callback implementation for focus change.

Returns

com.amazon.apmf.ISubscription* An ISubscription object specific to the registered listener, which can be used for later removal. See IFocusChangeListener
Last modified on October 29, 2026