Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
PageDirection
Stay organized with collections
Save and categorize content based on your preferences.
Direction constants for pagination over data sets.
Constant Summary
int |
NEXT
|
Direction advancing toward the end of the data
set. |
int |
NONE
|
Constant indicating that no pagination is
occurring. |
int |
PREV
|
Direction advancing toward the beginning of the
data set. |
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
NEXT
Direction advancing toward the end of the data set.
Constant Value: 0
public static final int
NONE
Constant indicating that no pagination is occurring.
Constant Value: -1
public static final int
PREV
Direction advancing toward the beginning of the data set.
Constant Value: 1
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-24 UTC."],[[["`PageDirection` provides direction constants for paginating through data sets."],["Three constants are available: `NEXT`, `PREV`, and `NONE` for navigating through or indicating no pagination."],["`NEXT` advances towards the end, `PREV` towards the beginning, and `NONE` signifies no pagination."],["This class helps control the direction of movement when working with paginated data in applications."]]],["`PageDirection` provides constants for navigating data sets. Key actions include moving towards the end of a dataset using `NEXT` (value 0), indicating no movement with `NONE` (value -1), or moving towards the beginning of the dataset with `PREV` (value 1). A nested interface `Direction` defines these same constants for pagination. It also inherits methods from the `Object` class for core object operations.\n"]]