<AGSClosestFacilityTaskDelegate> Protocol Reference


Description

A protocol which must be adopted by any class wishing to be notified when AGSClosestFacilityTask completes successfully or encounters an error. An instance of the class must then be set as the delegate of AGSClosestFacilityTask.

Defined in:
AGSClosestFacilityTask.h ( ArcGIS library)
Since:
1.8

List of all members.

Public Member Functions

(void) - closestFacilityTask:operation:didFailSolveWithError:
(void) - closestFacilityTask:operation:didFailToRetrieveDefaultClosestFacilityTaskParametersWithError:
(void) - closestFacilityTask:operation:didRetrieveDefaultClosestFacilityTaskParameters:
(void) - closestFacilityTask:operation:didSolveClosestFacilityWithResult:

Member Function Documentation

- (void) closestFacilityTask: (AGSClosestFacilityTask *)  closestFacilityTask
operation: (NSOperation *)  op
didFailSolveWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while performing the closest facility operation.

Parameters:
closestFacilityTask The task that performed the closest facility operation.
op NSOperation that performed the closest facility task.
error The error encountered by the closest facility operation.
Since:
1.8
- (void) closestFacilityTask: (AGSClosestFacilityTask *)  closestFacilityTask
operation: (NSOperation *)  op
didFailToRetrieveDefaultClosestFacilityTaskParametersWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while retrieving the default closest facility parameters.

Parameters:
closestFacilityTask The task that performed the request for default parameters.
op NSOperation that performed the request.
error The error encountered by the request.
Since:
1.8
- (void) closestFacilityTask: (AGSClosestFacilityTask *)  closestFacilityTask
operation: (NSOperation *)  op
didRetrieveDefaultClosestFacilityTaskParameters: (AGSClosestFacilityTaskParameters *)  closestFacilityParams 
[optional]

Tells the delegate that the default closest facility parameters were retrieved successfully.

Parameters:
closestFacilityTask The task that performed the request for default parameters.
op NSOperation that performed the request.
closestFacilityParams The default closest facility parameters for the task.
Since:
1.8
- (void) closestFacilityTask: (AGSClosestFacilityTask *)  closestFacilityTask
operation: (NSOperation *)  op
didSolveClosestFacilityWithResult: (AGSClosestFacilityTaskResult *)  closestFacilityTaskResult 
[required]

Tells the delegate that the closest facility operation completed successfully.

Parameters:
closestFacilityTask The task that performed the closest facility operation.
op NSOperation that performed the closest facility task.
closestFacilityTaskResult The result of the closest facility operation.
Since:
1.8