![]() |
Diffusion Apple API 6.12.0
Unified Client Library for iOS, tvOS and OS X / macOS
|
An immutable binary value with support for binary deltas.
Properties | |
| PTDiffusionRequest * | request |
| PTDiffusionResponse * | response |
| PTDiffusionUpdateConstraint * | updateConstraint |
Properties inherited from PTDiffusionBytes | |
| NSData * | data |
Instance Methods | |
| (nullable PTDiffusionBinary *) | - applyDelta:error: |
| (PTDiffusionBinaryDelta *) | - diffFromBinary: |
| (BOOL) | - isEqualToBinary: |
Instance Methods inherited from PTDiffusionBytes | |
| (instancetype) | - initWithData: |
| (BOOL) | - isEqualToBytes: |
| - (nullable PTDiffusionBinary *) applyDelta: | (PTDiffusionBinaryDelta *) | delta | |
| error: | (NSError **) | error | |
Apply a binary delta to the receiver's binary value to create a new value.
| delta | The delta describing the changes to be applied to the receiver's value in order to create the value to be returned. |
| error | Location to store a reason if this method returns nil to indicate failure. |
nil if there was a failure when applying the delta (e.g. either the delta is invalid).| NSInvalidArgumentException | Raised if the delta argument is `nil`. |
| - (PTDiffusionBinaryDelta *) diffFromBinary: | (PTDiffusionBinary *) | binary |
Compare the receiver's binary value with another (e.g. an earlier version) to create a binary delta.
| binary | The original to which the delta should be able to be applied in order to generate the value represented by the receiver. |
| NSInvalidArgumentException | Raised if the binary argument is `nil`. |
| - (BOOL) isEqualToBinary: | (nullable PTDiffusionBinary *) | binary |
Compares the receiver to the given binary.
| binary | The binary object with which to compare the receiver. |
YES if the data in binary is equal to the contents of the receiver, otherwise NO.| + (PTDiffusionRequestHandler *) requestHandlerWithDelegate: | (id< PTDiffusionBinaryRequestDelegate >) | delegate |
Creates a request handler capable of receiving Binary requests for a handler registered at the server.
| delegate | The object which will handle the incoming requests. A weak reference is maintained to this object by the returned handler. |
| NSInvalidArgumentException | Raised if the delegate argument is `nil`. |
| + (PTDiffusionRequestStream *) requestStreamWithDelegate: | (id< PTDiffusionBinaryRequestStreamDelegate >) | delegate |
Creates a request stream capable of receiving Binary requests.
| delegate | The object which will handle the incoming requests. A weak reference is maintained to this object by the returned stream. |
| NSInvalidArgumentException | Raised if the delegate argument is `nil`. |
| + (PTDiffusionSessionResponseStream *) sessionResponseStreamWithDelegate: | (id< PTDiffusionBinarySessionResponseStreamDelegate >) | delegate |
Creates a response stream capable of receiving Binary responses from discrete sessions.
| delegate | The object which will handle the incoming responses. A weak reference is maintained to this object by the returned stream. |
| NSInvalidArgumentException | Raised if the delegate argument is `nil`. |
| + (PTDiffusionValueStream *) timeSeriesEventValueStreamWithDelegate: | (id< PTDiffusionBinaryTimeSeriesEventValueStreamDelegate >) | delegate |
Creates a value stream capable of receiving binary time series events.
| delegate | The object which will handle the incoming stream. A weak reference is maintained to this object by the returned stream. |
| NSInvalidArgumentException | Raised if the delegate argument is `nil`. |
| + (PTDiffusionValueStream *) valueStreamWithDelegate: | (id< PTDiffusionBinaryValueStreamDelegate >) | delegate |
Creates a value stream capable of receiving binary values.
| delegate | The object which will handle the incoming stream. A weak reference is maintained to this object by the returned stream. |
| NSInvalidArgumentException | Raised if the delegate argument is `nil`. |
|
readnonatomicassign |
A request that can be used to send this value using messaging.
|
readnonatomicassign |
A response that can be used to send this value using messaging.
|
readnonatomicassign |
An update constraint requiring the current value of a topic to match this value.
Use noValue (PTDiffusionUpdateConstraint) to check if the topic has no value.
This constraint is unsatisfied if no topic is present at the path.