BTDataProcess.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // BTDataProcessVC.h
  3. // Unity-iPhone
  4. //
  5. // Created by leon on 2021/2/3.
  6. //
  7. #import <UIKit/UIKit.h>
  8. //蓝牙状态
  9. typedef NS_ENUM(NSInteger, BLETOOTH_STUTAS){
  10. CONNECT_DIS =0, // 未链接
  11. CONNECT_ING , //链接中
  12. CONNECT_ED,// 已链接
  13. CONNECT_LOST, // 丢失链接 /链接失败
  14. };
  15. @interface BTDataProcess : NSObject
  16. @property(assign,nonatomic)int main_nativeAttX;
  17. @property(assign,nonatomic)int vice_nativeAttX;
  18. /**
  19. 趣动app call sdk
  20. */
  21. //单例->初始化蓝牙
  22. +(instancetype)sharedInstance;
  23. //打开游戏
  24. -(void)startWithUrl:(NSURL*)url;
  25. /**
  26. unity call sdk
  27. */
  28. //unity call 打开弹窗
  29. -(void)searchBLEAction:(int)type;
  30. //邀请好友弹窗
  31. -(void)showInviteFriend:(int)code inviteInof:(NSString*)inviteInof;
  32. //unity call ios 断开蓝牙链接
  33. -(void)disConnedctBle:(int)type;
  34. /**
  35. 监听 IOSPlatformSDK 通知
  36. */
  37. //开始游戏
  38. -(void)gameStartInitData;
  39. //结束游戏
  40. -(void)gameEndInitData;
  41. //通知震动
  42. -(void)vibrationAction:(int)type duration:(int)duration leftOrRight:(int)leftOrRight;
  43. @end