EventBuffer
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\u003eEventBuffer\u003c/code\u003e provides access to a list of \u003ccode\u003eEvent\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eIt extends \u003ccode\u003eAbstractDataBuffer\u003c/code\u003e and implements interfaces for data management and iteration.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eget(int position)\u003c/code\u003e method allows retrieving an \u003ccode\u003eEvent\u003c/code\u003e at a specific position.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods for closing, getting count, checking closure status, and iterating through events.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEventBuffer\u003c/code\u003e inherits functionalities like \u003ccode\u003erelease()\u003c/code\u003e for resource management.\u003c/p\u003e\n"]]],[],null,["# EventBuffer\n\npublic final class **EventBuffer** extends [AbstractDataBuffer](/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\u003e \nData structure providing access to a list of events. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [Event](/android/reference/com/google/android/gms/games/event/Event) | [get](/android/reference/com/google/android/gms/games/event/EventBuffer#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 [Event](/android/reference/com/google/android/gms/games/event/Event) | get(int arg0) |\n| int | getCount() |\n| boolean | isClosed() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\u003e | iterator() |\n| void | release() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\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 [Event](/android/reference/com/google/android/gms/games/event/Event) | get(int arg0) |\n| abstract int | getCount() |\n| abstract boolean | isClosed() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\u003e | iterator() |\n| void | release() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\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[Event](/android/reference/com/google/android/gms/games/event/Event)\\\u003e | iterator() |\n| [Spliterator](//developer.android.com/reference/java/util/Spliterator.html)\\\u003c[Event](/android/reference/com/google/android/gms/games/event/Event)\\\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 [Event](/android/reference/com/google/android/gms/games/event/Event)\n**get** (int position)"]]