PagerTileSchema
Renders a Compose HorizontalPager over tiles, one page per child. pageSize chooses between full-width pages (PageSizeSchema.Fill) and fixed-width pages (PageSizeSchema.Fixed, in dp); pageSpacing and contentPadding are dp values (the padding is horizontal only), and beyondViewportPageCount controls how many off-screen pages stay composed.
Page control: the tile listens to the screen broadcast channel and reacts to scroll-to-begin, scroll-to-end, next-page and previous-page commands addressed to its id, each optionally animated. The resulting page is clamped to the valid range, so asking for the next page on the last one (or the previous page on the first) is a no-op rather than an error.
Triggers dispatched:
OnDisplayEventTrigger— fired once when the tile enters composition (keyed by tile id).OnPageChangedEventTrigger— fired whenever the settled current page changes (the initial page is skipped). The trigger is dispatched once per direction the new page matches, and each dispatch only reaches the events wired to that exact direction:Direction.Anyalways,Direction.Startwhen landing on the first page,Direction.Endwhen landing on the last page, andDirection.Index(page)for the new index. Wire events against whichever direction you care about — wiring several means several chains run for the same page change.
Notes: the pager is horizontal only, and children are rendered by index without a scope CompositionLocal.