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.

  • – clearNotificationList

    Clears the content of the PTNotificationHistory

  •   notificationItems

    NSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.

    property
  •   size

    NSInteger Returns the actual number of notifications in the PTNotificationHistory

    property
  •   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

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 capacity

Discussion

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.h

notificationItems

NSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.

@property (nonatomic, readonly) NSArray *notificationItems

Discussion

NSArray of PTNotificationHistoryItem elements. Method to retrive the notifications history. This property IS NOT observable.

Declared In

PTNotificationHistory.h

size

NSInteger Returns the actual number of notifications in the PTNotificationHistory

@property (nonatomic, readonly) NSInteger size

Discussion

NSInteger Returns the actual number of notifications in the PTNotificationHistory

Declared In

PTNotificationHistory.h

Instance 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 *)notification

Discussion

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

clearNotificationList

Clears the content of the PTNotificationHistory

- (void)clearNotificationList

Discussion

Clears the content of the PTNotificationHistory

Declared In

PTNotificationHistory.h