PageSize.Fixed


Multiple pages in a viewport

Summary

Public constructors

Fixed(pageSize: Dp)
Cmn

Public functions

open Int
Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int)

Based on availableSpace pick a size for the pages

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Dp

A fixed size for pages

Cmn

Public constructors

Fixed

Fixed(pageSize: Dp)
Parameters
pageSize: Dp

A fixed size for pages

Public functions

calculateMainAxisPageSize

open fun Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int): Int

Based on availableSpace pick a size for the pages

Parameters
availableSpace: Int

The amount of space in pixels the pages in this Pager can use.

pageSpacing: Int

The amount of space in pixels used to separate pages.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

pageSize

val pageSizeDp

A fixed size for pages