SFSDKAsyncProcessListener Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFSDKAsyncProcessListener.h |
– initWithExpectedStatus:actualStatusBlock:timeout:
Designated initializer. Initialize the process listener with an expected status and a block that will return status updates when called.
- (id)initWithExpectedStatus:(id)expectedStatus actualStatusBlock:(id ( ^ ) ( void ))actualStatusBlock timeout:(NSTimeInterval)timeout
Parameters
expectedStatus |
The expected return status upon completion. |
---|---|
actualStatusBlock |
The block that will return the actual status when called. |
timeout |
The amount of time before the asynchronous process is considered to time out. |
Declared In
SFSDKAsyncProcessListener.h
– waitForCompletion
Waits for the asynchronous process to complete.
- (id)waitForCompletion
Return Value
The actual status at the time the process completes, or times out.
Declared In
SFSDKAsyncProcessListener.h