Conforms to NSObject
Declared in NPTournamentDelegate.h

Overview

Implement this protocol to receive various method calls regarding the user’s interaction with the current Nextpeer tournament

Tasks

Instance Methods

nextpeerDidReceiveSynchronizedEvent:withReason:

Tells the delegate that the synchronized event was fired.

- (void)nextpeerDidReceiveSynchronizedEvent:(NSString *)eventName withReason:(NPSynchronizedEventFireReason)fireReason

Parameters

eventName

The event that was fired.

fireReason

The reason for firing the synchronized event.

Discussion

The event will only be fired if you registered for it beforehand with [Nextpeer registerToSynchronizedEvent:withTimetout:].

Declared In

NPTournamentDelegate.h

nextpeerDidReceiveTournamentCustomMessage:

This method will be called when Nextpeer has received a buffer from another player. You can use these buffers to create custom notifications and events while engaging the other players that are currently playing. The container that is passed contains the sending user’s name and image as well as the message being sent.

- (void)nextpeerDidReceiveTournamentCustomMessage:(NPTournamentCustomMessageContainer *)message

Declared In

NPTournamentDelegate.h

nextpeerDidReceiveTournamentResults:

This method is invoked whenever the current tournament has finished and the platform gathered the information from all the players. It might take some time between the call to [NextpeerDelegate nextpeerDidTournamentEnd] to this, as the platform retrieving the last result of each player.

- (void)nextpeerDidReceiveTournamentResults:(NPTournamentEndDataContainer *)tournamentContainer

Declared In

NPTournamentDelegate.h

nextpeerDidReceiveUnreliableTournamentCustomMessage:

This method will be called when Nextpeer has received a buffer from another player using the unreliable connection. You can use these buffers to receive updates about the game state that is going on other players' devices. The container that is passed contains the sending user’s name and image as well as the message being sent.

- (void)nextpeerDidReceiveUnreliableTournamentCustomMessage:(NPTournamentCustomUnreliableMessageContainer *)message

Declared In

NPTournamentDelegate.h