GameBuffer
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 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eGameBuffer\u003c/code\u003e provides access to a list of game data.\u003c/p\u003e\n"],["\u003cp\u003eIt extends \u003ccode\u003eAbstractDataBuffer\u003c/code\u003e and implements methods for data retrieval and management.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003eget(int position)\u003c/code\u003e, retrieves a \u003ccode\u003eGame\u003c/code\u003e object from the buffer at a specific position.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGameBuffer\u003c/code\u003e includes functionalities like iteration and resource management inherited from its parent and implemented interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt's important to \u003ccode\u003erelease()\u003c/code\u003e the \u003ccode\u003eGameBuffer\u003c/code\u003e when finished to free up resources.\u003c/p\u003e\n"]]],[],null,["# GameBuffer\n\npublic final class **GameBuffer** extends [AbstractDataBuffer](/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e \nData structure providing access to a list of games. \n\n### Public Method Summary\n\n|--------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [Game](/android/reference/com/google/android/gms/games/Game) | [get](/android/reference/com/google/android/gms/games/GameBuffer#get(int))(int position) |\n\n### Inherited Method Summary\n\nFrom class com.google.android.gms.common.data.AbstractDataBuffer \n\n|---------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| final void | close() |\n| abstract [Game](/android/reference/com/google/android/gms/games/Game) | get(int arg0) |\n| int | getCount() |\n| boolean | isClosed() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | iterator() |\n| void | release() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | singleRefIterator() |\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\nFrom interface com.google.android.gms.common.data.DataBuffer \n\n|------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| abstract void | close() |\n| abstract [Game](/android/reference/com/google/android/gms/games/Game) | get(int arg0) |\n| abstract int | getCount() |\n| abstract boolean | isClosed() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | iterator() |\n| void | release() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | singleRefIterator() |\n\nFrom interface java.lang.Iterable \n\n|------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| void | forEach([Consumer](//developer.android.com/reference/java/util/function/Consumer.html)\\\u003c? super T\\\u003e arg0) |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | iterator() |\n| [Spliterator](//developer.android.com/reference/java/util/Spliterator.html)\\\u003c[Game](/android/reference/com/google/android/gms/games/Game)\\\u003e | spliterator() |\n\nFrom interface com.google.android.gms.common.api.Releasable \n\n|---------------|-----------|\n| abstract void | release() |\n\nFrom interface java.io.Closeable \n\n|---------------|---------|\n| abstract void | close() |\n\nFrom interface java.lang.AutoCloseable \n\n|---------------|---------|\n| abstract void | close() |\n\nPublic Methods\n--------------\n\n#### public [Game](/android/reference/com/google/android/gms/games/Game) **get** (int position)"]]