Conforms to NSObject
Declared in NPNotificationDelegate.h

Overview

Implement this delegate to control and be notified of Nextpeer notifications (both outside and inside a game).

Tasks

Instance Methods

nextpeerDidReceiveTournamentStatus:

This method is invoked when a tournament status is reported. A tournament status includes information regarding all the players in the tournament – their ranks, who is still playing, their names, IDs, avatar images, etc. This information can be used to, for example, generate custom ranking notifications.

- (void)nextpeerDidReceiveTournamentStatus:(NPTournamentStatusInfo *)tournamentStatus

Parameters

tournamentStatus

The current tournament status.

Discussion

The rate of tournament status updates is approximately one per second.

Declared In

NPNotificationDelegate.h

nextpeerHandleDisallowedNotification:

Gets called when [NPNotificationDelegate nextpeerIsNotificationAllowed:] returns false. It is recommended to here display some sort of game specific version of the notification based on the notification data.

- (void)nextpeerHandleDisallowedNotification:(NPNotificationContainer *)notice

Discussion

@deprecated In-game notifications are no longer used and are thus deprecated. This method will never be called.

Declared In

NPNotificationDelegate.h

nextpeerIsNotificationAllowed:

Return whether or not Nextpeer should display a notification with the provided data. If false is returned, [NPNotificationDelegate nextpeerHandleDisallowedNotification:] gets called. If true is returned, [NPNotificationDelegate nextpeerNotificationWillShow:] gets called before the notification appears.

- (BOOL)nextpeerIsNotificationAllowed:(NPNotificationContainer *)notice

Discussion

@deprecated In-game notifications are no longer used and are thus deprecated. This method will never be called. The replacement is the in-game ranking display, see [Nextpeer enableRankingDisplay:] in Nextpeer+Tournament.h if you wish to disable it.

Declared In

NPNotificationDelegate.h

nextpeerNotificationWillShow:

Gets called every time a notification is about to appear.

- (void)nextpeerNotificationWillShow:(NPNotificationContainer *)notice

Discussion

@deprecated In-game notifications are no longer used and are thus deprecated. This method will never be called.

Declared In

NPNotificationDelegate.h