Returns an array of players the local player recently played with.
SDKs
- iOS 10.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Game
Kit
Declaration
Parameters
completionHandler
A block that is called after the recent player list has been loaded.
- recentPlayers
An array of players that the local player has recently played with.
- error
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is
nil
. Possible errors are networking issues or unauthenticated player.
Discussion
This method retrieves an array of players who have previously played with the local player or any players that are on the local player's legacy friends list.