Instance Property

friends

An array of NSString objects containing the player identifiers for the local player’s friends.

Declaration

var friends: [String]? { get }

Discussion

This property is invalid until a call to loadFriends(completionHandler:) succeeds.

See Also

Deprecated Methods and Properties

func authenticate(completionHandler: ((Error?) -> Void)?)

Authenticates the local player on the device.

Deprecated
func loadDefaultLeaderboardCategoryID(completionHandler: ((String?, Error?) -> Void)?)

Loads the category identifier for the local player’s default leaderboard.

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

Retrieves a list of player identifiers for the local player’s friends.

Deprecated
func loadFriends(completionHandler: (([String]?, Error?) -> Void)?)

Retrieves a list of player identifiers for the local player’s friends.

Deprecated
func setDefaultLeaderboardCategoryID(String?, completionHandler: ((Error?) -> Void)?)

Sets the category identifier for the local player’s default leaderboard.

Deprecated