Introduction
DEPRECATED API
This documentation describes the legacy Spec API (Codegen) which is deprecated and maintained only for existing code.
For new development:
- Use KComponents instead of
@LayoutSpec - Use Primitive Components instead of
@MountSpec - See Migration Strategies for converting existing Spec components
Support Status: Bug fixes only. No new features will be added to the Spec API.
The documentation for Spec APIs includes the following pages:
- Layout Specs - the logical equivalents of composite views on Android.
- Mount Specs - components that can render views or drawables.
- Dynamic Props - illustrates properties that are applied directly to a View or Drawable and are updated without computing a layout or remounting.
- Accessibility - explains why accessibility is important and how to implement accessibility features, and lists the supported accessibility events of the
Styleobject. - Sections API - documentation for the Sections API for writing lists.
- Props and TreeProps - the ways you can pass data to components.
- State in Specs - data that is encapsulated and managed within the component and is transparent to its parent.
- Events for Specs - a general-purpose API to connect components with one another.
- Triggering Events with Handles - how to use a
Handleto trigger events on components.