![]() |
Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
|
Extension adding support to the Messaging feature for sending requests accepting a primitive value in response. More...
#include <PTDiffusionPrimitive.h>
Extension adding support to the Messaging feature for sending requests accepting a primitive value in response.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toPath: | (NSString *) | path | |
| doubleFloatNumberCompletionHandler: | (void(^)(NSNumber *_Nullable number, NSError *_Nullable error)) | completionHandler |
Send a request for which a double-precision floating point (Eight-byte IEEE 754) response is expected.
The message will be routed to an appropriately registered control handler for the given path.
| request | The request to send. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toPath: | (NSString *) | path | |
| int64NumberCompletionHandler: | (void(^)(NSNumber *_Nullable number, NSError *_Nullable error)) | completionHandler |
Send a request for which a 64-bit integer response is expected.
The message will be routed to an appropriately registered control handler for the given path.
| request | The request to send. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toPath: | (NSString *) | path | |
| stringCompletionHandler: | (void(^)(NSString *_Nullable string, NSError *_Nullable error)) | completionHandler |
Send a request for which a string response is expected.
The message will be routed to an appropriately registered control handler for the given path.
| request | The request to send. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toSessionId: | (PTDiffusionSessionId *) | sessionId | |
| path: | (NSString *) | path | |
| doubleFloatNumberCompletionHandler: | (void(^)(NSNumber *_Nullable string, NSError *_Nullable error)) | completionHandler |
Send a request to a session for which a double-precision floating point (Eight-byte IEEE 754) response is expected.
| request | The request to send. |
| sessionId | The session to send the request to. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toSessionId: | (PTDiffusionSessionId *) | sessionId | |
| path: | (NSString *) | path | |
| int64NumberCompletionHandler: | (void(^)(NSNumber *_Nullable string, NSError *_Nullable error)) | completionHandler |
Send a request to a session for which a 64-bit integer response is expected.
| request | The request to send. |
| sessionId | The session to send the request to. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.
| - (void) sendRequest: | (PTDiffusionRequest *) | request | |
| toSessionId: | (PTDiffusionSessionId *) | sessionId | |
| path: | (NSString *) | path | |
| stringCompletionHandler: | (void(^)(NSString *_Nullable string, NSError *_Nullable error)) | completionHandler |
Send a request to a session for which a string response is expected.
| request | The request to send. |
| sessionId | The session to send the request to. |
| path | The path to send the request to. |
| completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue. |
| NSInvalidArgumentException | Raised if any supplied arguments are `nil`. |
Extends class PTDiffusionMessagingFeature.