# OHOS::Media::RecorderCallback ## **Overview** **Related Modules:** [MultiMedia\_Recorder](MultiMedia_Recorder.md) **Description:** Provides listeners for recording errors and information events. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Types
OnError (int32_t errorType, int32_t errorCode)=0 |
Called when an error occurs during recording. This callback is used to report recording errors. |
OnInfo (int32_t type, int32_t extra)=0 |
Called when an information event occurs during recording. This callback is used to report recording information. |