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.
Player.PlayerFriendStatus
Constant Summary
int |
FRIEND
|
Constant indicating that the currently signed-in
player and this player are friends. |
int |
NO_RELATIONSHIP
|
Constant indicating that the currently signed-in
player is not a friend of this player, and there are no pending invitations between
them. |
int |
UNKNOWN
|
Constant indicating that the currently signed-in
player's friend status with this player is unknown. |
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final int
FRIEND
Constant indicating that the currently signed-in player and this player are
friends.
Constant Value: 4
public static final int
NO_RELATIONSHIP
Constant indicating that the currently signed-in player is not a friend of this
player, and there are no pending invitations between them.
Constant Value: 0
public static final int
UNKNOWN
Constant indicating that the currently signed-in player's friend status with this
player is unknown. This may happen if the user has not shared the friends list with the
game.
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.
[null,null,["Last updated 2025-01-24 UTC."],[[["`Player.PlayerFriendStatus` is an annotation that defines the friendship status between the currently signed-in player and another player."],["Three constants represent the possible friendship statuses: `FRIEND`, `NO_RELATIONSHIP`, and `UNKNOWN`."],["`FRIEND` indicates an established friendship, `NO_RELATIONSHIP` indicates no friendship or pending invitations, and `UNKNOWN` indicates an undetermined status, potentially due to privacy settings."],["The constants have corresponding integer values: 4 for `FRIEND`, 0 for `NO_RELATIONSHIP`, and -1 for `UNKNOWN`."]]],["`Player.PlayerFriendStatus` defines three constants representing the relationship between the signed-in player and another player. `FRIEND` (4) indicates they are friends. `NO_RELATIONSHIP` (0) signifies they are not friends and have no pending invitations. `UNKNOWN` (-1) means the friend status is undetermined, potentially because the user hasn't shared their friend list with the game. It is an annotation implementing the `Annotation` interface.\n"]]