Type Property

local

Retrieves the shared instance of the local player.

Declaration

class var local: GKLocalPlayer { get }

Return Value

The local player object.

Discussion

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.