{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PagerSnapDistance.Companion

public static class PagerSnapDistance.Companion


Summary

Public methods

static final @NonNull PagerSnapDistance
atMost(int pages)

Limits the maximum number of pages that can be flung per fling gesture.

Public methods

atMost

public static final @NonNull PagerSnapDistance atMost(int pages)

Limits the maximum number of pages that can be flung per fling gesture.

Parameters
int pages

The maximum number of extra pages that can be flung at once.