gh-pages / com.nextfaze.devfun.internal / WindowCallbacks

WindowCallbacks

class WindowCallbacks (source)

Handles wrapping and posting Window events throughout an app’s life.

Used to tell the DevMenu overlays key events, and overlays when the current activity has focus. i.e. when they should hide if a dialog is visible etc.

See Also

KeyEventListener

FocusChangeListener

Constructors

Name Summary
<init> WindowCallbacks(application: Application, activityTracker: ActivityTracker)
Handles wrapping and posting Window events throughout an app’s life.

Properties

Name Summary
resumedActivityHasFocus var resumedActivityHasFocus: Boolean

Functions

Name Summary
addKeyEventListener fun addKeyEventListener(listener: KeyEventListener): KeyEventListener
addResumedActivityFocusChangeListener fun addResumedActivityFocusChangeListener(listener: FocusChangeListener): FocusChangeListener
minusAssign operator fun minusAssign(listener: FocusChangeListener): Unit
operator fun minusAssign(listener: KeyEventListener): Unit
plusAssign operator fun plusAssign(listener: FocusChangeListener): Unit
operator fun plusAssign(listener: KeyEventListener): Unit
removeKeyEventListener fun removeKeyEventListener(listener: KeyEventListener): KeyEventListener
removeResumedActivityFocusChangeListener fun removeResumedActivityFocusChangeListener(listener: FocusChangeListener): FocusChangeListener