Type Property


Retrieves the shared instance of the local player.


class var local: GKLocalPlayer { get }

Return Value

The local player object.


You never directly create a local player object. Instead, you retrieve the Singleton object by calling this class method.

See Also

Accessing the Shared Local Player

func loadRecentPlayers(completionHandler: (([GKPlayer]?, Error?) -> Void)?)

Returns an array of players the local player recently played with.