Singleton to provide a messaging framework for command and responses.
More...
#import <RKDeviceMessenger.h>
List of all members.
Detailed Description
Use to listen to command responses and streaming data.
Member Function Documentation
- (void) addDataStreamingObserver: |
|
(id) |
observer |
selector: |
|
(SEL) |
handler |
|
|
| |
Adds an observer for data streaming. Data streaming are packets of data that is sent from the device without being commanded.
- Parameters:
-
observer | The observer. Only one selector per observer is allowed. |
handler | A selector of the form - (void)handDataStreaming:(RKDeviceAsyncData *)data |
- (void) addResponseObserver: |
|
(id) |
observer |
selector: |
|
(SEL) |
handler |
|
|
| |
Adds an observer for response objects return for commands.
- Parameters:
-
observer | The observer for responses. |
handler | A selector that will be called on the observer with a signiture of -handleResponse:(RKDeviceResponse *)response. |
Method for posting a command in the command queue to be sent to a robot.
- Parameters:
-
command | The command object to post to the command queue. |
- (void) postCommand: |
|
(RKDeviceCommand *) |
command |
delay: |
|
(NSTimeInterval) |
delay |
|
|
| |
Method for posting a command in the command queue to be sent to a robot with a delay.
- Parameters:
-
command | The command to post to the command queue. |
delay | A delay in seconds before the command is queued. |
- (void) removeDataStreamingObserver: |
|
(id) |
observer |
|
Removes an observer from receiving asynchronize data @
- Parameters:
-
observer | The observer to remove. |
- (void) removeResponseObserver: |
|
(id) |
observer |
|
Removes an response observer.
- Parameters:
-
Accessor to the singleton.
The documentation for this class was generated from the following file: