Type Method

anonymousGuestPlayerWithIdentifier:

Creates a new guest player with the designated identifier.

Declaration

+ (instancetype)anonymousGuestPlayerWithIdentifier:(NSString *)guestIdentifier;

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

guestIdentifier

A developer created string used to identify a guest player.