ArcGIS Runtime SDK for iOS
100.15
|
A base operation class that implements the AGSOperation protocol.
Instance Methods | |
(void) | - cancel |
(void) | - didComplete: |
(void) | - doCancel |
(void) | - doExecute |
(void) | - doneExecuting |
(void) | - execute |
Properties | |
BOOL | canceled |
void(^ | internalCompletion )(void) |
BOOL | startAsynchronously |
AGSOperationState | state |
- (void) cancel |
Cancels the operation.
- (void) didComplete: | (BOOL) | everStarted |
Subclasses should override if they want to run some code once the operation is completed. This function is guaranteed to only be called once. everStarted
will be NO if the operation was canceled before it could be started.
Provided by category AGSOperationBase(ForSubclassEyesOnly).
- (void) doCancel |
Subclasses can override to do the actual work to cancel the operation. Once cancel is complete, call doneExecuting. For operations that do not do all of their work in doExecute, it makes sense to override this and cancel any network connections, etc. Then when the cancel is complete, you call doneExecuting. For operations where the work is all done in doExecute they shouldn't need to override this, you should just check the isCanceled
property throughout the execution of the operation and if it is canceled then call doneExecuting
and return.
Provided by category AGSOperationBase(ForSubclassEyesOnly).
- (void) doExecute |
Subclasses should override to do the actual execution of the operation. Once done, call doneExecuting
.
Provided by category AGSOperationBase(ForSubclassEyesOnly).
- (void) doneExecuting |
Subclasses should call this when they are done executing or done cancelling.
Provided by category AGSOperationBase(ForSubclassEyesOnly).
- (void) execute |
Starts the operation
|
readnonatomicassigninherited |
Whether or not cancel has been called on the operation. "Canceled" is a modifier on the current state since:
|
readwritenonatomiccopyinherited |
The block the operation will call to signify to the operation queue that the operation is complete. This block is reserved for use by the AGSOperationQueue. Do not assign your own block to this.
|
readwritenonatomicassign |
Subclasses can set this if they want to be started asynchronously or not. If an operation does most or all of it's work in doExecute
it should set this to YES. If an operation returns quickly from doExecute
and does all of it's work on a different queue then this value should be NO. The default value is YES.
Provided by category AGSOperationBase(ForSubclassEyesOnly).
|
readnonatomicassigninherited |
The current state of the operation.