Package 

Class PagerState

  • All Implemented Interfaces:
    androidx.compose.foundation.gestures.ScrollableState

    @Deprecated(message = 
    accompanist/pager is deprecated.
    The androidx.compose equivalent of Insets is Pager.
    For more migration information, please visit https://google.github.io/accompanist/pager/#migration
    , replaceWith = @ReplaceWith(imports = {androidx.compose.foundation.pager.PagerState}, expression = PagerState(currentPage = currentPage)))@Stable() 
    public final class PagerState
     implements ScrollableState
                        

    A state object that can be hoisted to control and observe scrolling for HorizontalPager.

    In most cases, this will be created via rememberPagerState.