DefaultRemotePageIndicatorState

class DefaultRemotePageIndicatorState : RemotePageIndicatorState


Default implementation of RemotePageIndicatorState.

Summary

Public constructors

DefaultRemotePageIndicatorState(
    pageCount: Int,
    selectedPage: RemoteInt,
    pageOffset: RemoteFloat
)

Public properties

open Int

Total number of pages.

open RemoteFloat

The current offset from the start of the selected page, as a ratio of the page width.

open RemoteInt

The currently selected page index as a RemoteInt.

Public constructors

DefaultRemotePageIndicatorState

Added in 1.0.0-alpha09
DefaultRemotePageIndicatorState(
    pageCount: Int,
    selectedPage: RemoteInt = 0.ri,
    pageOffset: RemoteFloat = 0f.rf
)

Public properties

pageCount

open val pageCountInt

Total number of pages.

pageOffset

open val pageOffsetRemoteFloat

The current offset from the start of the selected page, as a ratio of the page width.

selectedPage

open val selectedPageRemoteInt

The currently selected page index as a RemoteInt.