Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class LayoutChangeEvent(val view: View, val left: Int, val top: Int, val right: Int, val bottom: Int, val oldLeft: Int, val oldTop: Int, val oldRight: Int, val oldBottom: Int)
Link copied to clipboard
Link copied to clipboard
data class ScrollChangeEvent(val view: View, val scrollX: Int, val scrollY: Int, val oldScrollX: Int, val oldScrollY: Int)
Link copied to clipboard
sealed class ViewAttachEvent

Functions

Link copied to clipboard

Create a Flow of action view events on the MenuItem instance where the value emitted is one of the 2 event types: MenuItemActionViewEvent.Collapse, MenuItemActionViewEvent.Expand

Link copied to clipboard

Create a Flow of view attach events on the View instance where the value emitted is one of the 2 event types: ViewAttachEvent.Attached, ViewAttachEvent.Detached

Link copied to clipboard

Create a Flow of click events on the View instance.

fun MenuItem.clicks(handled: (MenuItem) -> Boolean = { true }): Flow<Unit>

Create a Flow of click events on the MenuItem instance.

Link copied to clipboard
fun View.drags(handled: (DragEvent) -> Boolean = { true }): Flow<DragEvent>

Create a Flow of drag events on the View instance.

Link copied to clipboard
fun View.draws(): Flow<Unit>

Create a Flow of draw events on the View instance.

Link copied to clipboard

Create a InitialValueFlow of focus changed events on the View instance, where the value emitted indicates whether the View has focus.

Link copied to clipboard
fun View.globalLayouts(): Flow<Unit>

Create a Flow of global layout events on the View instance.

Link copied to clipboard

Create a Flow of view group hierarchy change events on the ViewGroup instance where the value emitted is one of the 2 event types: HierarchyChangeEvent.ChildAdded, HierarchyChangeEvent.ChildRemoved

Link copied to clipboard
fun View.hovers(handled: (MotionEvent) -> Boolean = { true }): Flow<MotionEvent>

Create a Flow of hover events on the View instance.

Link copied to clipboard
fun View.keys(handled: (KeyEvent) -> Boolean = { true }): Flow<KeyEvent>

Create a Flow of key events on the View instance.

Link copied to clipboard

Create a Flow of view layout change events on the View instance.

Link copied to clipboard

Create a Flow which emits on view layout changes.

Link copied to clipboard

Create a Flow of long click events on the View instance.

Link copied to clipboard
fun View.preDraws(proceedDrawingPass: () -> Boolean): Flow<Unit>

Create a Flow of pre-draw events on the View instance.

Link copied to clipboard

Create a Flow of scroll change events on the View instance.

Link copied to clipboard

Create a Flow of system UI visibility change events on the View instance where the value emitted is one of the following: View.SYSTEM_UI_FLAG_LOW_PROFILE, View.SYSTEM_UI_FLAG_HIDE_NAVIGATION, View.SYSTEM_UI_FLAG_FULLSCREEN

Link copied to clipboard
fun View.touches(handled: (MotionEvent) -> Boolean = { true }): Flow<MotionEvent>

Create a Flow of touch events on the View instance.