---
title: "GlimmerPagerLayoutInfo"
description: "Contains useful information about the currently displayed layout state of a GlimmerHorizontalPager."
type: "interface"
lastmod: "2026-05-08T01:17:00.921905Z"
---
## API Reference

> Source set: Android

```kotlin
public sealed interface GlimmerPagerLayoutInfo
```

Contains useful information about the currently displayed layout state of a
[GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager). This information is available after the first measure pass.

Use [GlimmerPagerState.layoutInfo](/jetpack-compose/androidx.xr.glimmer/glimmer/classes/GlimmerPagerState) to retrieve this.

## Properties

### pageSize

> Source set: Android

```kotlin
public val pageSize: Int
```

The main axis size of the Pages in pixels for [GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager).

### pageSpacing

> Source set: Android

```kotlin
public val pageSpacing: Int
```

The page spacing in pixels for [GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager).

### viewportStartOffset

> Source set: Android

```kotlin
public val viewportStartOffset: Int
```

The start offset of the layout's viewport in pixels. You can think of it as a minimum offset
which would be visible. Usually it is 0, but it can be negative if non-zero
beforeContentPadding was applied as the content displayed in the content padding area is
still visible.

### viewportEndOffset

> Source set: Android

```kotlin
public val viewportEndOffset: Int
```

The end offset of the layout's viewport in pixels. You can think of it as a maximum offset
which would be visible. It is the size of the pager layout minus [beforeContentPadding](#beforecontentpadding).

### beforeContentPadding

> Source set: Android

```kotlin
public val beforeContentPadding: Int
```

The content padding in pixels applied before the first page in the direction of scrolling.
For example it is a start content padding for [GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager) with reverseLayout set
to false.

### afterContentPadding

> Source set: Android

```kotlin
public val afterContentPadding: Int
```

The content padding in pixels applied after the last page in the direction of scrolling. For
example it is a end content padding for [GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager) with reverseLayout set to
false.

### viewportSize

> Source set: Android

```kotlin
public val viewportSize: IntSize
```

The size of the viewport in pixels. It is the [GlimmerHorizontalPager](/jetpack-compose/androidx.xr.glimmer/glimmer/components/GlimmerHorizontalPager) layout size including
all the content paddings.
