Captainup
2.4
|
#import <CPTNotificationsQueue.h>
Instance Methods | |
(void) | - addListener: |
(void) | - removeListener: |
(nullable id< CPTObject >) | - peek |
(nullable id< CPTObject >) | - poll |
(NSUInteger) | - count |
(void) | - clear |
Properties | |
BOOL | isEmpty |
Manages a user's private notifications, such as the ones received when achieving a new badge or a new level.
- (void) clear |
Removes all notifications from the queue. The notifications are also removed from the Captain Up servers.
- (NSUInteger) count |
Returns the number of notifications in the queue.
- (nullable id<CPTObject>) peek |
Retrieves, but does not remove, the head of the notification's queue, or returns null
if this queue is empty.
null
if this queue is empty - (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.
null
if this queue is empty
|
readnonatomicassign |
Description