StreamLink for iOS  8.0.0.233163-35883203
<SLJsonDataEvent > Protocol Reference

Provides information about a change to JSON data. More...

Inheritance diagram for <SLJsonDataEvent >:

Instance Methods

(NSString *) - jsonString
 Returns the JSON string in the event. More...
 
(NSObject *) - json
 Returns the complete JSON object (patches applied) as created by the user defined JsonHandler (specified in the configuration). More...
 

Detailed Description

Provides information about a change to JSON data.

Method Documentation

- (NSObject * SLJsonDataEvent) json

Returns the complete JSON object (patches applied) as created by the user defined JsonHandler (specified in the configuration).

Returns
the JSON object (the type of this object is platform specific and depends on the JsonHandler configured).
- (NSString * SLJsonDataEvent) jsonString

Returns the JSON string in the event.

When a call to isImage() returns true, the subscription data event contains an image string which represents the JSON object. The application must discard any previously received JSON update and replace it with the value contained within the NSString.

When a call to isImage() returns false, the subscription data event contains an update to the JSON object in the form of a string containing operations that conform to RFC 6902 These operations should be applied to any cached JSON objects.


Generated on Tue Apr 23 2024 11:14:03 for StreamLink for iOS