Captainup  2.4
Instance Methods | Properties | List of all members
<CPTNotificationsQueue> Protocol Reference

#import <CPTNotificationsQueue.h>

Inheritance diagram for <CPTNotificationsQueue>:

Instance Methods

(void) - addListener:
 
(void) - removeListener:
 
(nullable id< CPTObject >) - peek
 
(nullable id< CPTObject >) - poll
 
(NSUInteger) - count
 
(void) - clear
 

Properties

BOOL isEmpty
 

Detailed Description

Manages a user's private notifications, such as the ones received when achieving a new badge or a new level.

Method Documentation

◆ clear()

- (void) clear

Removes all notifications from the queue. The notifications are also removed from the Captain Up servers.

◆ count()

- (NSUInteger) count

Returns the number of notifications in the queue.

Returns
the number of notifications in the queue

◆ peek()

- (nullable id<CPTObject>) peek

Retrieves, but does not remove, the head of the notification's queue, or returns null if this queue is empty.

Returns
the head of this queue, or null if this queue is empty

◆ poll()

- (nullable id<CPTObject>) poll

Retrieves and removes the notification at the head of this queue, or returns null if this queue is empty. The notification is also deleted from the captain up servers.

Returns
the head of this queue, or null if this queue is empty

Property Documentation

◆ isEmpty

- (BOOL) isEmpty
readnonatomicassign

Description


The documentation for this protocol was generated from the following file: