修改聊天闪退
This commit is contained in:
32
QXLive/Manager/QXHapticManager.h
Normal file
32
QXLive/Manager/QXHapticManager.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// QXHapticManager.h
|
||||
// QXLive
|
||||
//
|
||||
// Created by 启星 on 2025/12/5.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface QXHapticManager : NSObject
|
||||
|
||||
+ (instancetype)shared;
|
||||
|
||||
// 检查是否支持触觉反馈
|
||||
+ (BOOL)isHapticFeedbackSupported;
|
||||
|
||||
// 各种触觉反馈方法
|
||||
- (void)impactWithStyle:(UIImpactFeedbackStyle)style;
|
||||
- (void)impactMedium;
|
||||
- (void)notificationWithType:(UINotificationFeedbackType)type;
|
||||
- (void)selectionChanged;
|
||||
|
||||
// 带准备的触觉反馈
|
||||
- (void)prepareImpactWithStyle:(UIImpactFeedbackStyle)style;
|
||||
- (void)triggerPreparedImpact;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user