PTNotificationHistory Class Reference
| Inherits from | NSObject |
| Declared in | PTNotificationHistory.h |
Overview
PTNotificationHistory class.
The functionality of the PTNotificationHistory class it to provide access to a notifications events history list. Each notification of the PTNotificationHistory class is represented by an instance of PTNotification.
Tasks
-
– addNotification:Inserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.
-
– clearNotificationListClears the content of the PTNotificationHistory
-
notificationItemsNSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.
property -
sizeNSInteger Returns the actual number of notifications in the PTNotificationHistory
property -
capacityNSInteger Used for set/retrieve the current capacity of notifications. If a capacity greater than its current size is set, the oldest notifications will be deleted in order to accomodate to the new capacity. Default capacity is 1000.
property
Properties
capacity
NSInteger Used for set/retrieve the current capacity of notifications. If a capacity greater than its current size is set, the oldest notifications will be deleted in order to accomodate to the new capacity. Default capacity is 1000.
@property (nonatomic, assign) NSInteger capacityDiscussion
NSInteger Used for set/retrieve the current capacity of notifications. If a capacity greater than its current size is set, the oldest notifications will be deleted in order to accomodate to the new capacity. Default capacity is 1000.
Declared In
PTNotificationHistory.hnotificationItems
NSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.
@property (nonatomic, readonly) NSArray *notificationItemsDiscussion
NSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.
Declared In
PTNotificationHistory.hInstance Methods
addNotification:
Inserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.
- (void)addNotification:(PTNotification *)notificationDiscussion
Inserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.
Declared In
PTNotificationHistory.h