Package 

Object HorizontalPagerDefaults


  • 
    public class HorizontalPagerDefaults
    
                        

    Contains the default fling values used by HorizontalPager.

    This exists only until available in androidx.wear.compose.foundation.pager.

    • Method Summary

      Modifier and Type Method Description
      final TargetedFlingBehavior flingParams(PagerState pagerState) Creates flingParams that represents fling properties for HorizontalPager.
      • Methods inherited from class java.lang.Object

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

      • flingParams

        @Composable() final TargetedFlingBehavior flingParams(PagerState pagerState)

        Creates flingParams that represents fling properties for HorizontalPager. See HorizontalPagerSample for usage.

        Parameters:
        pagerState - the state to control this pager