![]() |
Public Member Functions | |
(BOOL) | - isValidResponse: |
(CommandIdentifier) | - command |
(id< IResponseHandler >) | - handler |
(void) | - sethandler: |
(IDBlueResponse *) | - response |
(void) | - setResponse: |
(BOOL) | - notifySynchronousResponse:withPropertyGenerator: |
IDBlueCommand derives from the IDBluePacket interface. IDBlueCommand Represents an IDBluePacket that can be sent to an IDBLUE device.
IDBlueCommand objects should not be created from outside the IDBLUE iOS SDK. Instead, use the appropriate method on the IDBlueCommandSender object that will create the appropriate IDBlueCommand object, and notify the calling application via the ResponseHandler interface.
- (CommandIdentifier) command |
Get the command identifier of the current IDBlueCommand
- (id< IResponseHandler >) handler |
Gets the ResponseHandler that is assigned to the current IDBlueCommand
- (BOOL) isValidResponse: | (IDBlueResponse*) | response |
Determine if the specified response is valid for the current IDBlueCommand. A valid response would be a response having the same command header, or a NACK response with the failedCommand matching the current IDBlueCommand header.
- (IDBlueResponse *) response |
Gets the IDBlueResponse for the current IDBlueCommand
- (void) sethandler: | (id<IResponseHandler>) | handler |
Sets the callback method to be executed when a response to the current IDBlueCommand is received from an IDBLUE device.
handler | the object implementing the ResponseHandler protocol. When a response is received to the current IDBlueCommand, the corresponding method will be invoked on the handler. |
- (void) setResponse: | (IDBlueResponse*) | response |
Sets the IDBlueResponse for the current IDBlueCommand
response | The IDBlueResponse received for the current IDBlueCommand |