| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // WidgetSpeedView.h
- // KulexiuForStudent
- //
- // Created by 王智 on 2022/9/13.
- //
- #import <UIKit/UIKit.h>
- #import "WidgetDotView.h"
- // 代理
- @protocol MetronomeControlViewDelegate <NSObject>
- /**
- 改变频率
- @param isAdd 增加频率还是减小频率
- @param speed 增加或减小的值
- */
- - (void)changeSpeedWithIsAdd:(BOOL)isAdd speed:(int)speed;
- @end
- NS_ASSUME_NONNULL_BEGIN
- @interface WidgetSpeedView : UIView
- + (instancetype)shareInstance;
- /** 节拍类型 */
- @property (nonatomic, assign) KSWidgeMetronomeType currentType;
- /** 代理 */
- @property (nonatomic, weak) id <MetronomeControlViewDelegate> delegate;
- /** 播放速率,范围50~200 */
- @property (nonatomic, assign) int speed;
- @end
- NS_ASSUME_NONNULL_END
|