rememberRemotePageIndicatorState

Functions summary

RemotePageIndicatorState
@Composable
rememberRemotePageIndicatorState(
    pageCount: Int,
    selectedPage: RemoteInt,
    pageOffset: RemoteFloat
)

Creates and remembers a RemotePageIndicatorState.

Functions

rememberRemotePageIndicatorState

@Composable
fun rememberRemotePageIndicatorState(
    pageCount: Int,
    selectedPage: RemoteInt = 0.ri,
    pageOffset: RemoteFloat = 0f.rf
): RemotePageIndicatorState

Creates and remembers a RemotePageIndicatorState.

Parameters
pageCount: Int

Total number of pages.

selectedPage: RemoteInt = 0.ri

The currently selected page index.

pageOffset: RemoteFloat = 0f.rf

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