loadFriends

fun loadFriends(pageSize: Int, forceReload: Boolean, askForPermission: Boolean)

Call this method and subscribe to the emitted signal to receive the list of friends for the currently signed in player in JSON format. The JSON received from the com.jacobibanez.plugin.android.godotplaygameservices.signals.PlayerSignals.friendsLoaded signal, contains a list of elements representing the com.google.android.gms.games.Player class.

Parameters

pageSize

The number of entries to request for this initial page.

forceReload

If true, this call will clear any locally cached data and attempt to fetch the latest data from the server.

askForPermission

If the user has not granted access to their friends list, and this is set to true, a new window will open asking the user for permission to their friends list.