59 lines
1.1 KiB
Objective-C
59 lines
1.1 KiB
Objective-C
//
|
|
// XPMineUserInfoRecordedSoundView.h
|
|
// xplan-ios
|
|
//
|
|
// Created by duoban on 2022/12/29.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
@protocol XPMineUserInfoRecordedSoundViewDelegate <NSObject>
|
|
///开始录音
|
|
- (void)startRecordAudio;
|
|
///停止录音
|
|
-(void)stopRecordAudio;
|
|
///重新录音
|
|
-(void)resetRecordAudio;
|
|
///播放录音
|
|
-(void)playRecordAudio;
|
|
///停止播放录音
|
|
-(void)stopPlayRecordAudio;
|
|
///删除录音
|
|
-(void)deleteRecordingAudio;
|
|
///保存录音
|
|
-(void)saveRecordAudio;
|
|
|
|
@end
|
|
|
|
|
|
@interface XPMineUserInfoRecordedSoundView : UIView
|
|
@property (nonatomic,weak) id<XPMineUserInfoRecordedSoundViewDelegate> delegate;
|
|
|
|
///正在录制
|
|
-(void)recordingWithTime:(NSString *)time progress:(CGFloat)progress animated:(BOOL)animated;
|
|
///录制完成
|
|
-(void)recordCompleted;
|
|
///开始录制
|
|
-(void)startRecord;
|
|
///停止录制
|
|
-(void)stopRecord;
|
|
///重置录制
|
|
-(void)resetRecord;
|
|
///播放录音
|
|
-(void)playRecord;
|
|
///停止播放录音
|
|
-(void)stopPlayRecord;
|
|
///保存声音
|
|
-(void)uploadRecordSuccess:(BOOL)isAudit;
|
|
///录制按钮的点击事件
|
|
-(void)recordAction;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|
|
|