Back to Androidx

Guide to Building RemoteCompose Component-Based Examples

compose/remote/remote-creation/doc/guides/COMPONENTS_GUIDE.md

latest584 B
Original Source

Guide to Building RemoteCompose Component-Based Examples

RemoteCompose provides two distinct component/modifier systems. Choose the guide based on your preferred API style:

Procedural API Guide (RemoteComposeContextAndroid)

Best for demos registered in DemosCreation.java. Uses raw units (pixels/floats) and procedural construction.

Compose-like API Guide (@RemoteComposable)

Best for demos registered in DemosCompose.kt. Uses standard Compose-like syntax, units (dp, sp), and state management.