CurrentPlayerInfo
Stay organized with collections
Save and categorize content based on your preferences.
Data object representing the information related only to the signed in user.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From interface
com.google.android.gms.common.data.Freezable
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public abstract int getFriendsListVisibilityStatus ()
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-09-10 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-09-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eCurrentPlayerInfo\u003c/code\u003e provides data specific to the signed-in user, such as friends list visibility.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eFreezable\u003c/code\u003e and \u003ccode\u003eParcelable\u003c/code\u003e for data management and persistence.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003egetFriendsListVisibilityStatus()\u003c/code\u003e, indicates if the user's friends list is shared with the game.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this interface to access and utilize the current player's information within a game.\u003c/p\u003e\n"]]],["The `CurrentPlayerInfo` interface provides data about the signed-in user. It includes a method, `getFriendsListVisibilityStatus()`, to determine if the user has shared their friends list with the game. It also implements `Freezable` and `Parcelable`, which support data freezing/unfreezing (`freeze()`, `isDataValid()`) and data transfer (`describeContents()`, `writeToParcel()`). Additionally, it contains constant for the data transport, and the possible friend list visibility status are provided by `Player.FriendsListVisibilityStatus`.\n"],null,[]]