Package-level declarations

Types

Link copied to clipboard

A convenient base implementation of ActionMode.Callback, when you don't need to override all methods.

Link copied to clipboard

A FragmentFactory which will iterate over a provided list of factories until finding one instantiating successfully the requested Fragment.

Link copied to clipboard
class DirectionalNavigationAdapter(navigator: OverflowableNavigator, tapEdges: Set<DirectionalNavigationAdapter.TapEdge> = setOf(TapEdge.Horizontal), handleTapsWhileScrolling: Boolean = false, minimumHorizontalEdgeSize: Double = 80.0, horizontalEdgeThresholdPercent: Double? = 0.3, minimumVerticalEdgeSize: Double = 80.0, verticalEdgeThresholdPercent: Double? = 0.3, animatedTransition: Boolean = false) : InputListener

Helper handling directional UI events (e.g. edge taps or arrow keys) to turn the pages of a VisualNavigator.

Link copied to clipboard
class SingleFragmentFactory<T : Fragment>(val fragmentClass: Class<T>, factory: () -> T) : FragmentFactory

A FragmentFactory which will instantiate a single type of Fragment using the result of the given factory closure.

Functions

Link copied to clipboard
inline fun <T : Fragment> createFragmentFactory(noinline factory: () -> T): SingleFragmentFactory<T>

Creates a FragmentFactory for a single type of Fragment using the result of the given factory closure.

Link copied to clipboard
inline fun <T : ViewModel> createViewModelFactory(crossinline factory: () -> T): ViewModelProvider.Factory

Creates a ViewModelProvider.Factory for a single type of ViewModel using the result of the given factory closure.