PTNotification Class Reference
| Inherits from | NSObject |
| Declared in | PTNotification.h |
Overview
PTNotification class.
PTNotificationHistory mantains a list of elements, each element containing a separate insstance of PTNotificationclass. This class encapsulates the object represantation of a single notification event.
Tasks
Creating a PTNotification
-
+ notificationWithType:code:description:Convenience method to create a PTNotification instance with a type, code and description
-
+ notificationWithType:code:description:metadata:innerNotification:Convenience method to create a PTNotification instance with a type, code, description, metadata and inner notification.
-
+ notificationWithAVPlayerItemErrorLogEvent:Convenience method to create a PTNotification from a AVPlayerItemErrorLogEvent.
-
+ notificationWithNSError:Convenience method to create a PTNotification from a NSError.
-
– initWithType:code:description:Creating a notification Initializes the notification with the specified type, code and description.
-
– initWithType:code:description:metadata:innerNotification:Creating a notification Initializes the notification with the specified type, code, description, metadata and inner notification.
-
– setMetadataValue:forKey:Adding metadata values Convinience method to add metadata values to a notification
-
– metadataValueforKey:Getting metadata values Convinience method to get metadata values from a notification.
-
typePTNotificationType Describes the notification event type. Types: PTNotificationTypeInfo, PTNotificationTypeWarning, PTNotificationTypeError;
property -
codeNSInteger A code describing the notification generated by the PMP framework
property -
descriptionNSString A description of the error. A free-form string containing a human-readable description of the notification event.
property -
metadataNSMutableDictionary A dictionary for arbitrary added info. Depending on the notification, useful information can be stored in the metadata such as: URL, run-time variable values, etc.
property -
innerNotificationPTNotification Instance of the notification. The semantics of this link is that of “event notification reason”. The notification that caused the current notification to be dispatched.
property
Properties
code
NSInteger A code describing the notification generated by the PMP framework
@property (nonatomic, readonly) NSInteger codeDiscussion
NSInteger A code describing the notification generated by the PMP framework
Declared In
PTNotification.hdescription
NSString A description of the error. A free-form string containing a human-readable description of the notification event.
@property (nonatomic, readonly, getter=notification_description) NSString *descriptionDiscussion
NSString A description of the error. A free-form string containing a human-readable description of the notification event.
Declared In
PTNotification.hinnerNotification
PTNotification Instance of the notification. The semantics of this link is that of “event notification reason”. The notification that caused the current notification to be dispatched.
@property (nonatomic, readonly) PTNotification *innerNotificationDiscussion
PTNotification Instance of the notification. The semantics of this link is that of “event notification reason”. The notification that caused the current notification to be dispatched.
Declared In
PTNotification.hmetadata
NSMutableDictionary A dictionary for arbitrary added info. Depending on the notification, useful information can be stored in the metadata such as: URL, run-time variable values, etc.
@property (nonatomic, retain) NSMutableDictionary *metadataDiscussion
NSMutableDictionary A dictionary for arbitrary added info. Depending on the notification, useful information can be stored in the metadata such as: URL, run-time variable values, etc.
Declared In
PTNotification.htype
PTNotificationType Describes the notification event type. Types: PTNotificationTypeInfo, PTNotificationTypeWarning, PTNotificationTypeError;
@property (nonatomic, readonly) PTNotificationType typeDiscussion
PTNotificationType Describes the notification event type. Types: PTNotificationTypeInfo, PTNotificationTypeWarning, PTNotificationTypeError;
Declared In
PTNotification.hClass Methods
notificationWithAVPlayerItemErrorLogEvent:
Convenience method to create a PTNotification from a AVPlayerItemErrorLogEvent.
+ (PTNotification *)notificationWithAVPlayerItemErrorLogEvent:(AVPlayerItemErrorLogEvent *)errorDiscussion
Convenience method to create a PTNotification from a AVPlayerItemErrorLogEvent.
Declared In
PTNotification.hnotificationWithNSError:
Convenience method to create a PTNotification from a NSError.
+ (PTNotification *)notificationWithNSError:(NSError *)errorDiscussion
Convenience method to create a PTNotification from a NSError.
Declared In
PTNotification.hnotificationWithType:code:description:
Convenience method to create a PTNotification instance with a type, code and description
+ (PTNotification *)notificationWithType:(PTNotificationType)type code:(NSInteger)code description:(NSString *)descriptionDiscussion
Convenience method to create a PTNotification instance with a type, code and description
Declared In
PTNotification.hnotificationWithType:code:description:metadata:innerNotification:
Convenience method to create a PTNotification instance with a type, code, description, metadata and inner notification.
+ (PTNotification *)notificationWithType:(PTNotificationType)type code:(NSInteger)code description:(NSString *)description metadata:(NSMutableDictionary *)metadata innerNotification:(PTNotification *)notificationDiscussion
Convenience method to create a PTNotification instance with a type, code, description, metadata and inner notification.
Declared In
PTNotification.hInstance Methods
initWithType:code:description:
Creating a notification Initializes the notification with the specified type, code and description.
- (id)initWithType:(PTNotificationType)type code:(NSInteger)code description:(NSString *)descriptionDiscussion
Creating a notification Initializes the notification with the specified type, code and description.
Declared In
PTNotification.hinitWithType:code:description:metadata:innerNotification:
Creating a notification Initializes the notification with the specified type, code, description, metadata and inner notification.
- (id)initWithType:(PTNotificationType)type code:(NSInteger)code description:(NSString *)description metadata:(NSMutableDictionary *)metadata innerNotification:(PTNotification *)notificationDiscussion
Creating a notification Initializes the notification with the specified type, code, description, metadata and inner notification.
Declared In
PTNotification.h