SFRestDelegate Protocol Reference
Conforms to | NSObject |
Declared in | SFRestAPI.h |
Tasks
-
– request:didLoadResponse:
Sent when a request has finished loading.
-
– request:didFailLoadWithError:
Sent when a request has failed due to an error. This includes HTTP network errors, as well as Salesforce errors (for example, passing an invalid SOQL string when doing a query).
-
– requestDidCancelLoad:
Sent to the delegate when a request was cancelled.
-
– requestDidTimeout:
Sent to the delegate when a request has timed out. This is sent when a backgrounded request expired before completion.
Instance Methods
request:didFailLoadWithError:
Sent when a request has failed due to an error. This includes HTTP network errors, as well as Salesforce errors (for example, passing an invalid SOQL string when doing a query).
- (void)request:(SFRestRequest *)request didFailLoadWithError:(NSError *)error
Discussion
Sent when a request has failed due to an error. This includes HTTP network errors, as well as Salesforce errors (for example, passing an invalid SOQL string when doing a query).
Declared In
SFRestAPI.h
request:didLoadResponse:
Sent when a request has finished loading.
- (void)request:(SFRestRequest *)request didLoadResponse:(id)jsonResponse
Discussion
Sent when a request has finished loading.
Declared In
SFRestAPI.h
requestDidCancelLoad:
Sent to the delegate when a request was cancelled.
- (void)requestDidCancelLoad:(SFRestRequest *)request
Discussion
Sent to the delegate when a request was cancelled.
Declared In
SFRestAPI.h
requestDidTimeout:
Sent to the delegate when a request has timed out. This is sent when a backgrounded request expired before completion.
- (void)requestDidTimeout:(SFRestRequest *)request
Discussion
Sent to the delegate when a request has timed out. This is sent when a backgrounded request expired before completion.
Declared In
SFRestAPI.h