RCCommandHelp.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 *)commandCloseLoaclKeyboad;
  53. /**
  54. * @brief 关闭云手机键盘透传
  55. *
  56. */
  57. + (NSString *)commandClosePhoneKeyboad;
  58. /**
  59. * @brief 设置云手机默认帧率
  60. *
  61. */
  62. + (NSString *)commandSetFps;
  63. /**
  64. * @brief 发送透传文字给云手机/输入或者删除
  65. *
  66. * @param str 输入的内容 为nil时为删除
  67. *
  68. */
  69. + (NSString *)commandKeyboadInputStr:(NSString *_Nullable)str;
  70. /**
  71. * @brief 获取发给安卓手机的指令字符串
  72. *
  73. * @param code 指令类型 3:home 4:back 25:声音-键 24:声音+键 187:后台切换
  74. *
  75. */
  76. + (NSString *)commandBackOrHomeVolum500WithKeyCode:(int)code;
  77. /**
  78. * @brief 获取发给安卓手机设置分辨率的指令字符串
  79. *
  80. * @param type 200:极速 400:高速 600:标清 800:自动 1000:高清
  81. *
  82. */
  83. + (NSString *)commandResolution500WithType:(NSUInteger)type;
  84. /**
  85. * @brief 云手机预览图指令
  86. */
  87. + (NSString *)commandGetScreenPicWithTaskUid:(NSString *)taskUid intervalTime:(int)intervalTime;
  88. /**
  89. * @brief 云手机截图指令
  90. */
  91. + (NSString *)commandCloudPhoneScreenshotWithTaskUid:(NSString *)taskUid;
  92. /**
  93. * @brief 云手机下载透传指令(云游戏下载透传到云手机)
  94. */
  95. + (NSString *)commandCloudPhoneDownloadWithTaskUid:(NSString *)taskUid apkUrl:(NSString *)apkUrl;
  96. /**
  97. * @brief 云游戏支付透传指令 (云游戏在本地支付完成透传到云手机)payResult 0:失败 1:成功
  98. */
  99. + (NSString *)commandCloudPhonePayWithTaskUid:(NSString *)taskUid payResult:(int)payResult;
  100. /**
  101. * @brief 剪切板接口
  102. *
  103. * @param str 要剪切的文本
  104. *
  105. */
  106. + (NSString *)commandCuttingWithContent:(NSString *)str;
  107. /**
  108. * @brief 记录推流开始时间
  109. *
  110. * @param deviceid 云手机id
  111. *
  112. */
  113. + (NSString *)commandConnectedWithDeviceId:(NSString *)deviceid;
  114. /**
  115. * @brief 控制权---查询控制权情况
  116. */
  117. + (NSString *)askControllcommandWithUseName:(NSString*)useName;
  118. /**
  119. * @brief 控制权---回复控制权
  120. *
  121. * @param useName 用户账号
  122. *
  123. * @param haveControl 是否有在控制 YES:有在控制 NO:没有在控制
  124. *
  125. */
  126. + (NSString *)faceBackControllcommandWithUseName:(NSString*)useName haveControl:(BOOL)haveControl;
  127. /**
  128. * @brief 控制权---拿回控制权
  129. *
  130. * @param useName 用户账号*
  131. */
  132. + (NSString *)getBackControllcommandWithUseName:(NSString*)useName;
  133. /**
  134. * @brief 获取板卡的分辨率
  135. */
  136. + (NSString *)getPhoneSizecommand;
  137. /**
  138. * @brief 设置板卡的分辨率
  139. *
  140. * @param width 宽度
  141. *
  142. * @param high 高度
  143. *
  144. * @param dpi 密度
  145. */
  146. + (NSString *)setPhoneSizecommandWithWidth:(NSInteger)width high:(NSInteger)high dpi:(NSInteger)dpi;
  147. /**
  148. * @brief 不支持wifi
  149. */
  150. + (NSString *)noSyncWifiBack;
  151. /**
  152. * @brief 向云手机发送下载app的指令
  153. *
  154. * @param appurl app下载链接 appid app标识符
  155. */
  156. + (NSString *)downLoadAppWithAppUrl:(NSString*)appurl appId:(NSString *)appid;
  157. /**
  158. * @brief 申请上传文件 请求
  159. *
  160. * @param taskUid
  161. * @param filePath 传file name
  162. */
  163. + (NSString *)applyForUploadFileBy:(NSString*)taskUid filePath:(NSString *)filePath;
  164. /**
  165. * @brief 申请备份文件 请求
  166. *
  167. * @param taskUid taskUid
  168. * @param fileName 传file name
  169. */
  170. + (NSString *)applyForBackupsFileBy:(NSString*)taskUid withFileName:(NSString *)fileName withSavePath:(NSString *)savePath;
  171. /**
  172. * @brief 创建文件夹
  173. *
  174. * @param pathAndfolderName pathAndfolderName
  175. */
  176. + (NSString *)applyForCreateFolderwithFolderName:(NSString *)pathAndfolderName;
  177. /**
  178. * @brief 获取创建的文件夹(备份)
  179. *
  180. */
  181. + (NSString *)getCreateFolderList;
  182. /**
  183. * @brief 搜索文件
  184. *
  185. * @param fileType 文件类型 jpg 图片 audio 音频 video 视频 apk 应用 doc 文档 other 其他文件 dir 文件夹
  186. */
  187. + (NSString *)searchCouldPhoneFilewithType:(NSString *)fileType withPath:(NSString*)pathStr;
  188. /**
  189. * @brief 下载文件
  190. *
  191. * @param taskUid
  192. */
  193. + (NSString *)applyForDownloadFileBy:(NSString *)taskUid withFilePath:(NSString *)filePath withPosition:(long)position;
  194. /**
  195. * @brief 获取外挂磁盘接口
  196. *
  197. */
  198. + (NSString *)getExtraFilesList;
  199. @end
  200. NS_ASSUME_NONNULL_END