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.FriendsListVisibilityStatus
Stay organized with collections
Save and categorize content based on your preferences.
Friends list visibility statuses.
Constant Summary
int |
FEATURE_UNAVAILABLE
|
Constant indicating that the friends list is
currently unavailable for the game. |
int |
REQUEST_REQUIRED
|
Constant indicating that the friends list is not
visible to the game, but the game can ask for access. |
int |
UNKNOWN
|
Constant indicating that currently it's unknown
if the friends list is visible to the game, or whether the game can ask for access
from the user. |
int |
VISIBLE
|
Constant indicating that the friends list is
currently visible to the game. |
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
FEATURE_UNAVAILABLE
Constant indicating that the friends list is currently unavailable for the game. You
cannot request access at this time, either because the user has permanently declined or
the friends feature is not available to them. In this state, any attempts to request
access to the friends list will be unsuccessful.
Constant Value: 3
public static final int
REQUEST_REQUIRED
Constant indicating that the friends list is not visible to the game, but the game
can ask for access.
Constant Value: 2
public static final int
UNKNOWN
Constant indicating that currently it's unknown if the friends list is visible to
the game, or whether the game can ask for access from the user. Use
PlayersClient.getCurrentPlayer(boolean)
to force reload the latest
status.
Constant Value: 0
public static final int
VISIBLE
Constant indicating that the friends list is currently visible to 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.
[[["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-01-24 UTC."],[[["`Player.FriendsListVisibilityStatus` defines the different states of a player's friends list visibility within a game."],["There are four visibility states: `VISIBLE`, `REQUEST_REQUIRED`, `FEATURE_UNAVAILABLE`, and `UNKNOWN`."],["`VISIBLE` means the game can access the player's friends list, while `REQUEST_REQUIRED` indicates the game needs to request access."],["`FEATURE_UNAVAILABLE` signifies the friends list is inaccessible, and `UNKNOWN` represents an undetermined state that requires a refresh."],["These constants help developers understand and manage the visibility of a player's friends list within their game."]]],["`Player.FriendsListVisibilityStatus` defines four states for a game's access to a player's friends list: `FEATURE_UNAVAILABLE` (access impossible), `REQUEST_REQUIRED` (access can be requested), `UNKNOWN` (current status unknown, requires refresh via `PlayersClient.getCurrentPlayer(boolean)`), and `VISIBLE` (access granted). Each state is represented by an integer constant: 3, 2, 0, and 1 respectively. This interface also extends the `Annotation` interface and provides inherited methods such as `annotationType()` , `equals()` , `hashCode()` and `toString()`.\n"]]