ORKRecorderDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ORKRecorder.h |
The ORKRecorderDelegate
protocol defines methods that the delegate of an ORKRecorder
object should use to handle errors and log the
completed results.
This protocol is implemented by ORKActiveStepViewController
; your app should not
need to implement it.
– recorder:didCompleteWithResult:
required method
Tells the delegate that the recorder has completed with the specified result.
- (void)recorder:(ORKRecorder *)recorder didCompleteWithResult:(nullable ORKResult *)result
Parameters
recorder |
The generating recorder object. |
---|---|
result |
The generated result. |
Discussion
Typically, this method is called once when recording is stopped.
Declared In
ORKRecorder.h
– recorder:didFailWithError:
required method
Tells the delegate that recording failed.
- (void)recorder:(ORKRecorder *)recorder didFailWithError:(NSError *)error
Parameters
recorder |
The generating recorder object. |
---|---|
error |
The error that occurred. |
Discussion
Typically, this method is called once when the error occurred.
Declared In
ORKRecorder.h