PlayerRelationshipInfo
Stay organized with collections
Save and categorize content based on your preferences.
Data object representing the relationship information of a player.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
abstract int |
getFriendStatus()
Retrieves this player's friend status relative to the currently signed-in
player.
|
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 getFriendStatus ()
Retrieves this player's friend status relative to the currently signed-in player.
The possible output can be found in Player.PlayerFriendStatus
.
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\u003ePlayerRelationshipInfo\u003c/code\u003e is a data object that holds the relationship details of a player, like their friend status relative to the current user.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eFreezable\u003c/code\u003e and \u003ccode\u003eParcelable\u003c/code\u003e interfaces, offering functionalities such as data freezing and parceling for object transmission.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003egetFriendStatus()\u003c/code\u003e, retrieves the player's friend status, which could be retrieved via the \u003ccode\u003ePlayer.PlayerFriendStatus\u003c/code\u003e constants.\u003c/p\u003e\n"]]],[],null,["# PlayerRelationshipInfo\n\npublic interface **PlayerRelationshipInfo** implements [Freezable](/android/reference/com/google/android/gms/common/data/Freezable)\\\u003c[PlayerRelationshipInfo](/android/reference/com/google/android/gms/games/PlayerRelationshipInfo)\\\u003e [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nData object representing the relationship information of a player. \n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getFriendStatus](/android/reference/com/google/android/gms/games/PlayerRelationshipInfo#getFriendStatus())() Retrieves this player's friend status relative to the currently signed-in player. |\n\n### Inherited Method Summary\n\nFrom interface com.google.android.gms.common.data.Freezable \n\n|-----------------------------------------------------------------------------------------------------------|---------------|\n| abstract [PlayerRelationshipInfo](/android/reference/com/google/android/gms/games/PlayerRelationshipInfo) | freeze() |\n| abstract boolean | isDataValid() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nPublic Methods\n--------------\n\n#### public abstract int **getFriendStatus** ()\n\nRetrieves this player's friend status relative to the currently signed-in player.\nThe possible output can be found in [Player.PlayerFriendStatus](/android/reference/com/google/android/gms/games/Player.PlayerFriendStatus)."]]