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 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."],[[["`Player.FriendsListVisibilityStatus` defines the various states of a player's friends list visibility within a game."],["These states indicate whether the friends list is visible, requires a request for access, is unavailable, or has an unknown status."],["Constants like `FEATURE_UNAVAILABLE`, `REQUEST_REQUIRED`, `UNKNOWN`, and `VISIBLE` represent these different visibility states."],["Developers can use these constants to determine the appropriate actions regarding accessing a player's friends list, such as requesting access or handling unavailable scenarios."],["`PlayersClient.getCurrentPlayer(boolean)` can be used to refresh and obtain the latest friends list visibility status."]]],[]]