MBQueryDelegate Protocol Reference
| Conforms to | NSObject NSXMLParserDelegate |
| Declared in | MBQueryDelegate.h |
Tasks
-
– query:didCompleteRequest:withResult:Success Callback
required method -
– query:didCompleteRequest:withError:Error Callback
required method
Instance Methods
query:didCompleteRequest:withError:
Error Callback
- (void)query:(MBQuery *)query didCompleteRequest:(MBRequest *)request withError:(NSError *)errorParameters
- query
The query object that handled the request
- request
The request
- error
The error object (if any)
Discussion
Error Callback
MBQuery will send a message to the delegate whenever anything causes the request to fail. If there is any error information, it will be sent as well.
Declared In
MBQueryDelegate.hquery:didCompleteRequest:withResult:
Success Callback
- (void)query:(MBQuery *)query didCompleteRequest:(MBRequest *)request withResult:(MBMetadata *)resultParameters
- query
The query object that handled the request
- request
The request
- result
The result
Discussion
Success Callback
MBQuery will send a message to the delegate when the request is finished and successful.
Declared In
MBQueryDelegate.h