FlowBinding AppCompat

This module provides bindings for the AndroidX AppCompat library.

Transitive Dependency

androidx.appcompat:appcompat

Download

1
implementation "io.github.reactivecircus.flowbinding:flowbinding-appcompat:${flowbinding_version}"

Available Bindings

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// ActionMenuView
fun ActionMenuView.itemClicks(): Flow<MenuItem>

// PopupMenu
fun PopupMenu.dismisses(): Flow<Unit>
fun PopupMenu.itemClicks(): Flow<MenuItem>

// SearchView
fun SearchView.queryTextChanges(emitImmediately: Boolean = false): Flow<CharSequence>
fun SearchView.queryTextEvents(emitImmediately: Boolean = false): Flow<QueryTextEvent>

// Toolbar
fun Toolbar.itemClicks(): Flow<MenuItem>
fun Toolbar.navigationClicks(): Flow<Unit>