CurrentPlayerInfo

  • CurrentPlayerInfo is a data object representing information about the signed-in user.

  • It implements Freezable and Parcelable interfaces.

  • The getFriendsListVisibilityStatus() method indicates if the user's friends list is shared with the game.

public interface CurrentPlayerInfo implements Freezable<CurrentPlayerInfo> Parcelable

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

Public Method Summary

abstract int
getFriendsListVisibilityStatus ()
Retrieves if the user has shared the friends list with the game.

Inherited Method Summary

From interface com.google.android.gms.common.data.Freezable
abstract CurrentPlayerInfo
freeze()
abstract boolean
isDataValid()
From interface android.os.Parcelable
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

Public Methods

public abstract int getFriendsListVisibilityStatus ()

Retrieves if the user has shared the friends list with the game. The possible output can be found in Player.FriendsListVisibilityStatus .

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.