RCCommandHelp.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. //
  2. // RCCommandHelp.h
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2019/11/7.
  6. // Copyright © 2019 APPLE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface RCCommandHelp : NSObject
  12. + (NSString *)mutTapCommand500DownWithTouches:(NSArray *)touches
  13. showImageView:(UIImageView *)showImageView
  14. isLan:(BOOL)isLan;
  15. + (NSString *)mutTapCommand500UpWithTouches:(NSArray *)touches
  16. showImageView:(UIImageView *)showImageView
  17. isLan:(BOOL)isLan;
  18. + (NSString *)mutMoveCommand500UpWithTouches:(NSArray *)touches
  19. showImageView:(UIImageView *)showImageView
  20. isLan:(BOOL)isLan;
  21. + (NSString *)tapDownCommandTouches:(UITouch *)touch
  22. touchCount:(NSInteger)touchCount
  23. showImageView:(UIImageView *)showImageView
  24. isLan:(BOOL)isLan;
  25. + (NSString *)tapUpCommandTouches:(UITouch *)touch
  26. touchCount:(NSInteger)touchCount
  27. showImageView:(UIImageView *)showImageView
  28. isLan:(BOOL)isLan;
  29. + (NSString *)tapMoveCommandTouches:(UITouch *)touch
  30. touchCount:(NSInteger)touchCount
  31. showImageView:(UIImageView *)showImageView
  32. isLan:(BOOL)isLan;
  33. /**
  34. * @brief 关闭视频流指令
  35. *
  36. */
  37. + (NSString *)toStopControllerDevice500;
  38. /**
  39. * @brief 摇一摇
  40. *
  41. */
  42. + (NSString *)commandShake;
  43. /**
  44. * @brief 开启本地键盘透传
  45. *
  46. */
  47. + (NSString *)commandOpenLoaclKeyboad;
  48. /**
  49. * @brief 关闭云手机键盘透传
  50. *
  51. */
  52. + (NSString *)commandClosePhoneKeyboad;
  53. /**
  54. * @brief 发送透传文字给云手机/输入或者删除
  55. *
  56. * @param str 输入的内容 为nil时为删除
  57. *
  58. */
  59. + (NSString *)commandKeyboadInputStr:(NSString *_Nullable)str;
  60. /**
  61. * @brief 获取发给安卓手机的指令字符串
  62. *
  63. * @param code 指令类型 3:home 4:back 25:声音-键 24:声音+键 187:后台切换
  64. *
  65. */
  66. + (NSString *)commandBackOrHomeVolum500WithKeyCode:(int)code;
  67. /**
  68. * @brief 获取发给安卓手机设置分辨率的指令字符串
  69. *
  70. * @param type 200:极速 400:高速 600:标清 800:自动 1000:高清
  71. *
  72. */
  73. + (NSString *)commandResolution500WithType:(NSUInteger)type;
  74. /**
  75. * @brief 云手机预览图指令
  76. */
  77. + (NSString *)commandGetScreenPicWithTaskUid:(NSString *)taskUid intervalTime:(int)intervalTime;
  78. /**
  79. * @brief 云手机截图指令
  80. */
  81. + (NSString *)commandCloudPhoneScreenshotWithTaskUid:(NSString *)taskUid;
  82. /**
  83. * @brief 云手机下载透传指令(云游戏下载透传到云手机)
  84. */
  85. + (NSString *)commandCloudPhoneDownloadWithTaskUid:(NSString *)taskUid apkUrl:(NSString *)apkUrl;
  86. /**
  87. * @brief 云游戏支付透传指令 (云游戏在本地支付完成透传到云手机)payResult 0:失败 1:成功
  88. */
  89. + (NSString *)commandCloudPhonePayWithTaskUid:(NSString *)taskUid payResult:(int)payResult;
  90. /**
  91. * @brief 剪切板接口
  92. *
  93. * @param str 要剪切的文本
  94. *
  95. */
  96. + (NSString *)commandCuttingWithContent:(NSString *)str;
  97. /**
  98. * @brief 记录推流开始时间
  99. *
  100. * @param deviceid 云手机id
  101. *
  102. */
  103. + (NSString *)commandConnectedWithDeviceId:(NSString *)deviceid;
  104. /**
  105. * @brief 控制权---查询控制权情况
  106. */
  107. + (NSString *)askControllcommandWithUseName:(NSString*)useName;
  108. /**
  109. * @brief 控制权---回复控制权
  110. *
  111. * @param useName 用户账号
  112. *
  113. * @param haveControl 是否有在控制 YES:有在控制 NO:没有在控制
  114. *
  115. */
  116. + (NSString *)faceBackControllcommandWithUseName:(NSString*)useName haveControl:(BOOL)haveControl;
  117. /**
  118. * @brief 控制权---拿回控制权
  119. *
  120. * @param useName 用户账号*
  121. */
  122. + (NSString *)getBackControllcommandWithUseName:(NSString*)useName;
  123. /**
  124. * @brief 获取板卡的分辨率
  125. */
  126. + (NSString *)getPhoneSizecommand;
  127. /**
  128. * @brief 设置板卡的分辨率
  129. *
  130. * @param width 宽度
  131. *
  132. * @param high 高度
  133. *
  134. * @param dpi 密度
  135. */
  136. + (NSString *)setPhoneSizecommandWithWidth:(NSInteger)width high:(NSInteger)high dpi:(NSInteger)dpi;
  137. /**
  138. * @brief 不支持wifi
  139. */
  140. + (NSString *)noSyncWifiBack;
  141. /**
  142. * @brief 向云手机发送下载app的指令
  143. *
  144. * @param appurl app下载链接 appid app标识符
  145. */
  146. + (NSString *)downLoadAppWithAppUrl:(NSString*)appurl appId:(NSString *)appid;
  147. @end
  148. NS_ASSUME_NONNULL_END