Package 

Class PagerStateKt

    • Method Summary

      Modifier and Type Method Description
      final static PagerState rememberPagerState(@IntRange(from = 0.toLong()) Integer initialPage) Creates a PagerState that is remembered across compositions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rememberPagerState

         final static PagerState rememberPagerState(@IntRange(from = 0.toLong()) Integer initialPage)

        Creates a PagerState that is remembered across compositions.

        Changes to the provided values for initialPage will not result in the state being recreated or changed in any way if it has already been created.

        Parameters:
        initialPage - the initial value for PagerState.currentPage