xref: /aosp_15_r20/external/accompanist/pager/api/current.api (revision fa44fe6ae8e729aa3cfe5c03eedbbf98fb44e2c6)
1*fa44fe6aSInna Palant// Signature format: 4.0
2*fa44fe6aSInna Palantpackage com.google.accompanist.pager {
3*fa44fe6aSInna Palant
4*fa44fe6aSInna Palant  @Deprecated @kotlin.RequiresOptIn(message="Accompanist Pager is experimental. The API may be changed in the future.") @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalPagerApi {
5*fa44fe6aSInna Palant  }
6*fa44fe6aSInna Palant
7*fa44fe6aSInna Palant  public final class Pager {
8*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable public static void HorizontalPager(int count, optional androidx.compose.ui.Modifier modifier, optional com.google.accompanist.pager.PagerState state, optional boolean reverseLayout, optional float itemSpacing, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.Alignment.Vertical verticalAlignment, optional androidx.compose.foundation.gestures.FlingBehavior flingBehavior, optional kotlin.jvm.functions.Function1<? super java.lang.Integer,?>? key, optional boolean userScrollEnabled, kotlin.jvm.functions.Function2<? super com.google.accompanist.pager.PagerScope,? super java.lang.Integer,kotlin.Unit> content);
9*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable public static void VerticalPager(int count, optional androidx.compose.ui.Modifier modifier, optional com.google.accompanist.pager.PagerState state, optional boolean reverseLayout, optional float itemSpacing, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.Alignment.Horizontal horizontalAlignment, optional androidx.compose.foundation.gestures.FlingBehavior flingBehavior, optional kotlin.jvm.functions.Function1<? super java.lang.Integer,?>? key, optional boolean userScrollEnabled, kotlin.jvm.functions.Function2<? super com.google.accompanist.pager.PagerScope,? super java.lang.Integer,kotlin.Unit> content);
10*fa44fe6aSInna Palant    method @Deprecated public static float calculateCurrentOffsetForPage(com.google.accompanist.pager.PagerScope, int page);
11*fa44fe6aSInna Palant  }
12*fa44fe6aSInna Palant
13*fa44fe6aSInna Palant  @Deprecated public final class PagerDefaults {
14*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable @dev.chrisbanes.snapper.ExperimentalSnapperApi public androidx.compose.foundation.gestures.FlingBehavior flingBehavior(com.google.accompanist.pager.PagerState state, optional androidx.compose.animation.core.DecayAnimationSpec<java.lang.Float> decayAnimationSpec, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> snapAnimationSpec, optional kotlin.jvm.functions.Function1<? super dev.chrisbanes.snapper.SnapperLayoutInfo,java.lang.Float> maximumFlingDistance, optional float endContentPadding);
15*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable @dev.chrisbanes.snapper.ExperimentalSnapperApi public androidx.compose.foundation.gestures.FlingBehavior flingBehavior(com.google.accompanist.pager.PagerState state, optional androidx.compose.animation.core.DecayAnimationSpec<java.lang.Float> decayAnimationSpec, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> snapAnimationSpec, optional float endContentPadding, kotlin.jvm.functions.Function3<? super dev.chrisbanes.snapper.SnapperLayoutInfo,? super java.lang.Integer,? super java.lang.Integer,java.lang.Integer> snapIndex);
16*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable @dev.chrisbanes.snapper.ExperimentalSnapperApi public androidx.compose.foundation.gestures.FlingBehavior flingBehavior(com.google.accompanist.pager.PagerState state, optional androidx.compose.animation.core.DecayAnimationSpec<java.lang.Float> decayAnimationSpec, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> snapAnimationSpec, optional float endContentPadding);
17*fa44fe6aSInna Palant    method @Deprecated public kotlin.jvm.functions.Function1<dev.chrisbanes.snapper.SnapperLayoutInfo,java.lang.Float> getSinglePageFlingDistance();
18*fa44fe6aSInna Palant    method @Deprecated public kotlin.jvm.functions.Function3<dev.chrisbanes.snapper.SnapperLayoutInfo,java.lang.Integer,java.lang.Integer,java.lang.Integer> getSinglePageSnapIndex();
19*fa44fe6aSInna Palant    property @Deprecated public final kotlin.jvm.functions.Function1<dev.chrisbanes.snapper.SnapperLayoutInfo,java.lang.Float> singlePageFlingDistance;
20*fa44fe6aSInna Palant    property public final kotlin.jvm.functions.Function3<dev.chrisbanes.snapper.SnapperLayoutInfo,java.lang.Integer,java.lang.Integer,java.lang.Integer> singlePageSnapIndex;
21*fa44fe6aSInna Palant    field @Deprecated public static final com.google.accompanist.pager.PagerDefaults INSTANCE;
22*fa44fe6aSInna Palant  }
23*fa44fe6aSInna Palant
24*fa44fe6aSInna Palant  @Deprecated @androidx.compose.runtime.Stable public interface PagerScope {
25*fa44fe6aSInna Palant    method @Deprecated public int getCurrentPage();
26*fa44fe6aSInna Palant    method @Deprecated public float getCurrentPageOffset();
27*fa44fe6aSInna Palant    property public abstract int currentPage;
28*fa44fe6aSInna Palant    property public abstract float currentPageOffset;
29*fa44fe6aSInna Palant  }
30*fa44fe6aSInna Palant
31*fa44fe6aSInna Palant  @Deprecated @androidx.compose.runtime.Stable public final class PagerState implements androidx.compose.foundation.gestures.ScrollableState {
32*fa44fe6aSInna Palant    ctor @Deprecated public PagerState(optional @IntRange(from=0L) int currentPage);
33*fa44fe6aSInna Palant    method @Deprecated public suspend Object? animateScrollToPage(@IntRange(from=0L) int page, optional @FloatRange(from=0.0, to=1.0) float pageOffset, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> animationSpec, optional float initialVelocity, optional boolean skipPages, optional kotlin.coroutines.Continuation<? super kotlin.Unit>);
34*fa44fe6aSInna Palant    method @Deprecated public suspend Object? animateScrollToPage(@IntRange(from=0L) int page, optional @FloatRange(from=-1.0, to=1.0) float pageOffset, optional kotlin.coroutines.Continuation<? super kotlin.Unit>);
35*fa44fe6aSInna Palant    method @Deprecated public float dispatchRawDelta(float delta);
36*fa44fe6aSInna Palant    method @Deprecated @IntRange(from=0L) public int getCurrentPage();
37*fa44fe6aSInna Palant    method @Deprecated public float getCurrentPageOffset();
38*fa44fe6aSInna Palant    method @Deprecated public androidx.compose.foundation.interaction.InteractionSource getInteractionSource();
39*fa44fe6aSInna Palant    method @Deprecated @IntRange(from=0L) public int getPageCount();
40*fa44fe6aSInna Palant    method @Deprecated public int getTargetPage();
41*fa44fe6aSInna Palant    method @Deprecated public boolean isScrollInProgress();
42*fa44fe6aSInna Palant    method @Deprecated public suspend Object? scroll(androidx.compose.foundation.MutatePriority scrollPriority, kotlin.jvm.functions.Function2<? super androidx.compose.foundation.gestures.ScrollScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>);
43*fa44fe6aSInna Palant    method @Deprecated public suspend Object? scrollToPage(@IntRange(from=0L) int page, optional @FloatRange(from=-1.0, to=1.0) float pageOffset, optional kotlin.coroutines.Continuation<? super kotlin.Unit>);
44*fa44fe6aSInna Palant    property @IntRange(from=0L) public final int currentPage;
45*fa44fe6aSInna Palant    property public final float currentPageOffset;
46*fa44fe6aSInna Palant    property public final androidx.compose.foundation.interaction.InteractionSource interactionSource;
47*fa44fe6aSInna Palant    property public boolean isScrollInProgress;
48*fa44fe6aSInna Palant    property @Deprecated @IntRange(from=0L) public final int pageCount;
49*fa44fe6aSInna Palant    property @Deprecated public final int targetPage;
50*fa44fe6aSInna Palant    field @Deprecated public static final com.google.accompanist.pager.PagerState.Companion Companion;
51*fa44fe6aSInna Palant  }
52*fa44fe6aSInna Palant
53*fa44fe6aSInna Palant  @Deprecated public static final class PagerState.Companion {
54*fa44fe6aSInna Palant    method @Deprecated public androidx.compose.runtime.saveable.Saver<com.google.accompanist.pager.PagerState,?> getSaver();
55*fa44fe6aSInna Palant    property public final androidx.compose.runtime.saveable.Saver<com.google.accompanist.pager.PagerState,?> Saver;
56*fa44fe6aSInna Palant  }
57*fa44fe6aSInna Palant
58*fa44fe6aSInna Palant  public final class PagerStateKt {
59*fa44fe6aSInna Palant    method @Deprecated @androidx.compose.runtime.Composable public static com.google.accompanist.pager.PagerState rememberPagerState(optional @IntRange(from=0L) int initialPage);
60*fa44fe6aSInna Palant  }
61*fa44fe6aSInna Palant
62*fa44fe6aSInna Palant}
63*fa44fe6aSInna Palant
64