Type Method

anonymousGuestPlayer(withIdentifier:)

Creates a new guest player with the designated identifier.

Declaration

class func anonymousGuestPlayer(withIdentifier guestIdentifier: String) -> Self

Parameters

guestIdentifier

A developer created NSString object used to identify the guest player.

Return Value

A new GKPlayer object.

Discussion

This method is used to create a new GKPlayer object for a guest player. Treat the guest player the same as a authenticated user in regards to matchmaking services.

See Also

Creating a Guest Player

var guestIdentifier: String?

A developer created string used to identify a guest player.