Declared in | NSDictionary+Pebble.h |
– pb_pebbleDictionaryData:
Serializes the receiver into a Pebble dict.
- (nullable NSData *)pb_pebbleDictionaryData:(NSError *__autoreleasing *)error
Parameters
- error
- Pointer to an NSError * that will be set in case there was an error creating the dictionary. Possible error codes: PBErrorCodeDictionaryUnsupportedKeyClass PBErrorCodeDictionaryUnsupportedValueClass PBErrorCodeDictionaryUnsupportedValueClass
Discussion
The receiver dictionary must comply to the following constraints:
- The keys must be instances of
NSNumber
. Their-unsignedLongValue
return value will be used as final key. - The values must be instances of either
NSString
,NSData
orNSNumber
. Use theNSNumber (stdint)
category to specify the signedness and width ofNSNumber
.
Declared In
NSDictionary+Pebble.h