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.
Nested Class Summary
@interface
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
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."],[[["\u003cp\u003e\u003ccode\u003ePageDirection\u003c/code\u003e provides direction constants for paginating through data sets.\u003c/p\u003e\n"],["\u003cp\u003eThree constants are available: \u003ccode\u003eNEXT\u003c/code\u003e, \u003ccode\u003ePREV\u003c/code\u003e, and \u003ccode\u003eNONE\u003c/code\u003e for navigating through or indicating no pagination.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNEXT\u003c/code\u003e advances towards the end, \u003ccode\u003ePREV\u003c/code\u003e towards the beginning, and \u003ccode\u003eNONE\u003c/code\u003e signifies no pagination.\u003c/p\u003e\n"],["\u003cp\u003eThis class helps control the direction of movement when working with paginated data in applications.\u003c/p\u003e\n"]]],["`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"],null,["# PageDirection\n\npublic final class **PageDirection** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nDirection constants for pagination over data sets. \n\n### Nested Class Summary\n\n|------------|---|---|----------------------------------------------------|\n| @interface | [PageDirection.Direction](/android/games_v1/reference/com/google/android/gms/games/PageDirection.Direction) || Direction constants for pagination over data sets. |\n\n### Constant Summary\n\n|-----|-------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| int | [NEXT](/android/games_v1/reference/com/google/android/gms/games/PageDirection#NEXT) | Direction advancing toward the end of the data set. |\n| int | [NONE](/android/games_v1/reference/com/google/android/gms/games/PageDirection#NONE) | Constant indicating that no pagination is occurring. |\n| int | [PREV](/android/games_v1/reference/com/google/android/gms/games/PageDirection#PREV) | Direction advancing toward the beginning of the data set. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**NEXT**\n\nDirection advancing toward the end of the data set. \nConstant Value: 0 \n\n#### public static final int\n**NONE**\n\nConstant indicating that no pagination is occurring. \nConstant Value: -1 \n\n#### public static final int\n**PREV**\n\nDirection advancing toward the beginning of the data set. \nConstant Value: 1"]]