Package-level declarations

Types

Link copied to clipboard
abstract class BaseRenderInfo : RenderInfo
Keeps the list item information that will allow the framework to understand how to render it.
Link copied to clipboard
interface Binder<V : ViewGroup?>
This binder class is used to asynchronously layout Components given a list of Component and attaching them to a ViewGroup through the bind method.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
LinearSmoothScroller subclass that snaps the target position to center.
Link copied to clipboard
A callback invoked when the data for a section has been dispatched to the underlying RecyclerView.
Link copied to clipboard
open class ClearFocusEvent
Event sent to TextEdit to clear focus.
Link copied to clipboard
A listener that reacts to click and long click events on a clickable span.
Link copied to clipboard
A provider function for a Component.
Link copied to clipboard
RenderInfo that can render components.
Link copied to clipboard
@ThreadSafe
open class ComponentTreeHolder
A class used to store the data backing a RecyclerBinder.
Link copied to clipboard
open class ComponentWarmer
Pool for pre-computing and storing ComponentTrees.
Link copied to clipboard
Implementation of the LinearSnapHelper supporting hscroll custom target child view The implementation will snap the center of the custom target child view to the center of the attached RecyclerView.
Link copied to clipboard
Interface to provide name of the model used for tracing purposes.
Link copied to clipboard
Link copied to clipboard
LinearSmoothScroller subclass that snaps the target position to start/end or either ends.
Link copied to clipboard
Event sent by EditText when the return key is pressed or the IME signals an 'action'.
Link copied to clipboard
EditTextStateUpdatePolicy specifies when EditText component should update its internal input state
Link copied to clipboard
Use this with TextInput to get the field's current line count.
Link copied to clipboard
open class GetTextEvent
Use this with TextInput to get the field's current text.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Event sent to TextEdit to make cursor invisible.

Link copied to clipboard
A controller that can be passed as com.facebook.litho.annotations.Prop to a to trigger events from outside the component hierarchy.
Link copied to clipboard
Extension of HorizontalScrollView that allows to add more features needed for @.
Link copied to clipboard
@MountSpec(isPureRender = true, poolSize = 30, canPreallocate = true)
open class ImageSpec
A component that is able to display drawable resources.
Link copied to clipboard
Event that corresponds to an underlying android.widget.EditText#onCreateInputConnection(EditorInfo editorInfo).
Link copied to clipboard
Event sent by EditText when the input focus changed by user
Link copied to clipboard
Event sent to Spinner once an item has been selected.
Link copied to clipboard
open class KeyPreImeEvent
Event that corresponds to an underlying android.widget.EditText#onKeyPreIme().
Link copied to clipboard
open class KeyUpEvent
Event that corresponds to an underlying android.widget.EditText#onKeyUp().
Link copied to clipboard
A Factory used to create RunnableHandlers in RecyclerBinder.
Link copied to clipboard
An implementation of this interface will provide the RecyclerBinder with all the information about the RecyclerView layout.
Link copied to clipboard
open class LayoutInfoUtils
Utility class for calculating the wrapped height of given holders.
Link copied to clipboard
An implementation for LayoutInfo to implement linear lists with a .
Link copied to clipboard
Extension of RecyclerView that allows to add more features needed for @
Link copied to clipboard
Extension of NestedScrollView that allows to add more features needed for @.
Link copied to clipboard
A factory used to create LithoViews in RecyclerBinder.
Link copied to clipboard
Extension of ClickableSpan that provides longclick capability in addition to click.
Link copied to clipboard
Mountable CharSequence that is aware when the Text component using this CharSequence is mounted and unmounted.
Link copied to clipboard

Because a LayoutInfo/LayoutManager may rely on padding to generate a child measure specs, and because padding isn't accessible in a thread-safe way, this interface gives a LayoutManager the chance to record the RecyclerView's padding when it's attached.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class PTRRefreshEvent
An event that is triggered when a pull-to-refresh action is performed.
Link copied to clipboard
This binder class is used to asynchronously layout Components given a list of Component and attaching them to a RecyclerSpec.
Link copied to clipboard
Link copied to clipboard
A delegation that is used to customize the adapter behaviour for the RecyclerView that the RecyclerBinder uses.
Link copied to clipboard
data class RecyclerBinderConfig(val componentsConfiguration: ComponentsConfiguration? = null, val isCircular: Boolean = false, val lithoViewFactory: LithoViewFactory? = null, val hScrollAsyncMode: Boolean = false, val requestMountForPrefetchedItems: Boolean = false, val recyclerViewItemPrefetch: Boolean = false, val itemViewCacheSize: Int = 0, val componentWarmer: ComponentWarmer? = null, val estimatedViewportCount: Int? = null, val hasDynamicItemHeight: Boolean = false, val layoutHandlerFactory: LayoutHandlerFactory? = null, val threadPoolConfig: LayoutThreadPoolConfiguration? = null, val rangeRatio: Float = DEFAULT_RANGE_RATIO, val enableStableIds: Boolean = ComponentsConfiguration.defaultRecyclerBinderUseStableId, val wrapContent: Boolean = false)

This configuration is meant to be used in the context of RecyclerBinder. It allows you to define to define specific behavior changes to the default behaviour of the RecyclerBinder.

Link copied to clipboard

This builder is just a helper class for Java clients.

Link copied to clipboard
An implementation of ListUpdateCallback that generates the relevant Components when an item is inserted/updated.
Link copied to clipboard
The ViewHolder that hosts LithoView used by RecyclerBinder
Link copied to clipboard
An controller that can be passed as com.facebook.litho.annotations.Prop to a Recycler component to trigger events from outside the component hierarchy.
Link copied to clipboard
An interface for generating traversing order for a range.
Link copied to clipboard
open class ReMeasureEvent
An event that a RecyclerBinder can trigger to notify the Recycler that it should re-measure.
Link copied to clipboard
interface RenderInfo
Link copied to clipboard
Holds a mapping of Views inside a Litho hierarchy to related debugging information.
Link copied to clipboard
Helper class to keep track of the different view types that we're rendering using ViewRenderInfo.
Link copied to clipboard
open class ReplaceTextEvent
Replaces the text input text from startIndex to endIndex with the given text.
Link copied to clipboard
Event sent to TextEdit to request focus.
Link copied to clipboard
Scroll change listener invoked when the scroll position changes.
Link copied to clipboard
open class SectionsDebug
Utilities for sections debugging.
Link copied to clipboard
Wrapper that encapsulates all the features RecyclerSpec provides such as sticky header and pull-to-refresh
Link copied to clipboard
Event sent by EditText when the selection (particular case: cursor position) gets changed by user
Link copied to clipboard
Event sent to TextEdit to send accessibility event.
Link copied to clipboard
Use this with TextInput to set the field's current selection.
Link copied to clipboard
open class SetTextEvent
Use this with TextInput to set the field's current text.
Link copied to clipboard

Event sent to TextEdit to make cursor visible.

Link copied to clipboard
open class SnapUtil
Utility class containing snapping related behavior of RecyclerView.
Link copied to clipboard
open class SpinnerSpec
A simple spinner (dropdown) component.
Link copied to clipboard
Link copied to clipboard
An implementation for LayoutInfo to implement staggered grids with a .
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Enumeration of text alignment values.
Link copied to clipboard
open class TextChangedEvent
Event sent by EditText when the text entered by the user changes.
Link copied to clipboard
A Drawable for mounting text content from a Component.
Link copied to clipboard
Text component should implement an event of this type in order to receive callback on what was the text offset when text was touched initially.
Link copied to clipboard
@MountSpec(isPureRender = true, poolSize = 30, canPreallocate = true, events = [TextOffsetOnTouchEvent::class])
open class TextSpec
Component to render text.
Link copied to clipboard
Link copied to clipboard
open class TextureWarmer
A class that schedules a background draw of a Layout or Drawable.
Link copied to clipboard
A listener that reacts to touch events on a clickable span.
Link copied to clipboard
A wrapper around RenderInfo that also stores TreeProps used for rendering the component.
Link copied to clipboard
Enum for setting vertical gravity of a component.
Link copied to clipboard
A controller that can be passed as com.facebook.litho.annotations.Prop to a to trigger events from outside the component hierarchy.
Link copied to clipboard
@MountSpec(hasChildLithoViews = true, isPureRender = true)
open class VerticalScrollSpec
Component that wraps another component, allowing it to be vertically scrollable.
Link copied to clipboard
interface ViewportInfo
An implementation of this interface will provide both the 's current visible views position and the total number of items in its androidx.recyclerview.widget.RecyclerView.Adapter.
Link copied to clipboard
RenderInfo that can render views.
Link copied to clipboard
open class WidgetAttributes
Collection of the AttributeKey that are used across Litho's widgets.