PTMetadata Class Reference
Inherits from | NSObject |
Declared in | PTMetadata.h |
Overview
PTMetadata is the base class for configuring all available metadata for the Player. Individual components extend this class to provide additional accessors for key-value metadata.
Tasks
-
– setValue:forKey:
Sets the specified value for the key.
-
– valueForKey:
Returns the value of the specified key.
-
– allKeys
Returns all the keys as an NSArray instance (includes metadata keys and value keys)
-
– metadataForKey:
Returns the value of the specified metadata key.
-
– setMetadata:forKey:
Sets the specified metadata for the key.
Instance Methods
allKeys
Returns all the keys as an NSArray instance (includes metadata keys and value keys)
- (NSArray *)allKeys
Return Value
A new array containing the keys, or an empty array if this instance has no entries.
Discussion
Returns all the keys as an NSArray instance (includes metadata keys and value keys)
Declared In
PTMetadata.h
metadataForKey:
Returns the value of the specified metadata key.
- (PTMetadata *)metadataForKey:(NSString *)key
Parameters
- key
The name of the metadata key whose value is to be returned.
Return Value
The PTMetadata instance for the specified key or nil if there is no corresponding value for the key
Discussion
Returns the value of the specified metadata key.
The key must be non empty value.
Declared In
PTMetadata.h
setMetadata:forKey:
Sets the specified metadata for the key.
- (void)setMetadata:(PTMetadata *)metadata forKey:(NSString *)key
Parameters
- metadata
The PTMetadata instance for the key. Any existing value for the key is replaced by the new value
- key
The name of the metadata key to be set.
Discussion
Sets the specified metadata for the key.
Declared In
PTMetadata.h
setValue:forKey:
Sets the specified value for the key.
- (void)setValue:(id)value forKey:(NSString *)key
Parameters
- value
The valyefor the key. Any existing value for the key is replaced by the new value
- key
The name of the key to be set.
Discussion
Sets the specified value for the key.
Declared In
PTMetadata.h
valueForKey:
Returns the value of the specified key.
- (id)valueForKey:(NSString *)key
Parameters
- key
The name of the key whose value is to be returned.
Return Value
The value for the specified key or nil if there is no corresponding value for the key
Discussion
Returns the value of the specified key.
The key must be a non empty value.
Declared In
PTMetadata.h