Instance Method

clearBadgeForPlayers:completionHandler:

Clears the badge from the designated players.

Declaration

- (void)clearBadgeForPlayers:(NSArray<GKCloudPlayer *> *)players completionHandler:(void (^)(NSError *error))completionHandler;

Parameters

players

An array of GKCloudPlayers identifying the players that are to have their badge removed.

completionHandler

A block that is called after the badges have been removed from the players.

error

If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil. See GameKit Constants for a list of error codes specific to GameKit.

See Also

Communicating Between Players

badgedPlayers

An array containing all of the currently badged players.

Deprecated