WidgetSpeedView.h 745 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // WidgetSpeedView.h
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2022/9/13.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "WidgetDotView.h"
  9. // 代理
  10. @protocol MetronomeControlViewDelegate <NSObject>
  11. /**
  12. 改变频率
  13. @param isAdd 增加频率还是减小频率
  14. @param speed 增加或减小的值
  15. */
  16. - (void)changeSpeedWithIsAdd:(BOOL)isAdd speed:(int)speed;
  17. @end
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface WidgetSpeedView : UIView
  20. + (instancetype)shareInstance;
  21. /** 节拍类型 */
  22. @property (nonatomic, assign) KSWidgeMetronomeType currentType;
  23. /** 代理 */
  24. @property (nonatomic, weak) id <MetronomeControlViewDelegate> delegate;
  25. /** 播放速率,范围50~200 */
  26. @property (nonatomic, assign) int speed;
  27. @end
  28. NS_ASSUME_NONNULL_END