Instance Method

registerListener:

Register a listener for a particular event.

Declaration

- (void)registerListener:(id<GKLocalPlayerListener>)listener;

Parameters

listener

The GKLocalPlayerListener object containing the selector information to listen to.

Discussion

Only register a listener a single time. Registering a listener multiple times will result in undefined behavior.

See Also

Registering Listeners

- unregisterAllListeners

Unregister all listeners in your game.

- unregisterListener:

Unregister a specific listener.