123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // BTDataProcessVC.h
- // Unity-iPhone
- //
- // Created by leon on 2021/2/3.
- //
- #import <UIKit/UIKit.h>
- //蓝牙状态
- typedef NS_ENUM(NSInteger, BLETOOTH_STUTAS){
- CONNECT_DIS =0, // 未链接
- CONNECT_ING , //链接中
- CONNECT_ED,// 已链接
- CONNECT_LOST, // 丢失链接 /链接失败
- };
- @interface BTDataProcess : NSObject
- @property(assign,nonatomic)int main_nativeAttX;
- @property(assign,nonatomic)int vice_nativeAttX;
- /**
- 趣动app call sdk
- */
- //单例->初始化蓝牙
- +(instancetype)sharedInstance;
- //打开游戏
- -(void)startWithUrl:(NSURL*)url;
- /**
- unity call sdk
- */
- //unity call 打开弹窗
- -(void)searchBLEAction:(int)type;
- //邀请好友弹窗
- -(void)showInviteFriend:(int)code inviteInof:(NSString*)inviteInof;
- //unity call ios 断开蓝牙链接
- -(void)disConnedctBle:(int)type;
- /**
- 监听 IOSPlatformSDK 通知
- */
- //开始游戏
- -(void)gameStartInitData;
- //结束游戏
- -(void)gameEndInitData;
- //通知震动
- -(void)vibrationAction:(int)type duration:(int)duration leftOrRight:(int)leftOrRight;
- @end
|