RCCommandHelp.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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. * @param height 宽或者高 最大这
  88. *
  89. */
  90. + (NSString *)commandResolutionFactorWithHeight:(CGFloat)height;
  91. /**
  92. * @brief 云手机预览图指令
  93. */
  94. + (NSString *)commandGetScreenPicWithTaskUid:(NSString *)taskUid intervalTime:(int)intervalTime;
  95. /**
  96. * @brief 云手机截图指令
  97. */
  98. + (NSString *)commandCloudPhoneScreenshotWithTaskUid:(NSString *)taskUid;
  99. /**
  100. * @brief 云手机下载透传指令(云游戏下载透传到云手机)
  101. */
  102. + (NSString *)commandCloudPhoneDownloadWithTaskUid:(NSString *)taskUid apkUrl:(NSString *)apkUrl;
  103. /**
  104. * @brief 云游戏支付透传指令 (云游戏在本地支付完成透传到云手机)payResult 0:失败 1:成功
  105. */
  106. + (NSString *)commandCloudPhonePayWithTaskUid:(NSString *)taskUid payResult:(int)payResult;
  107. /**
  108. * @brief 剪切板接口
  109. *
  110. * @param str 要剪切的文本
  111. *
  112. */
  113. + (NSString *)commandCuttingWithContent:(NSString *)str;
  114. /**
  115. * @brief 记录推流开始时间
  116. *
  117. * @param deviceid 云手机id
  118. *
  119. */
  120. + (NSString *)commandConnectedWithDeviceId:(NSString *)deviceid;
  121. /**
  122. * @brief 控制权---查询控制权情况
  123. */
  124. + (NSString *)askControllcommandWithUseName:(NSString*)useName;
  125. /**
  126. * @brief 控制权---回复控制权
  127. *
  128. * @param useName 用户账号
  129. *
  130. * @param haveControl 是否有在控制 YES:有在控制 NO:没有在控制
  131. *
  132. */
  133. + (NSString *)faceBackControllcommandWithUseName:(NSString*)useName haveControl:(BOOL)haveControl;
  134. /**
  135. * @brief 控制权---拿回控制权
  136. *
  137. * @param useName 用户账号*
  138. */
  139. + (NSString *)getBackControllcommandWithUseName:(NSString*)useName;
  140. /**
  141. * @brief 获取板卡的分辨率
  142. */
  143. + (NSString *)getPhoneSizecommand;
  144. /**
  145. * @brief 设置板卡的分辨率
  146. *
  147. * @param width 宽度
  148. *
  149. * @param high 高度
  150. *
  151. * @param dpi 密度
  152. */
  153. + (NSString *)setPhoneSizecommandWithWidth:(NSInteger)width high:(NSInteger)high dpi:(NSInteger)dpi;
  154. /**
  155. * @brief 不支持wifi
  156. */
  157. + (NSString *)noSyncWifiBack;
  158. /**
  159. * @brief 向云手机发送下载app的指令
  160. *
  161. * @param appurl app下载链接 appid app标识符
  162. */
  163. + (NSString *)downLoadAppWithAppUrl:(NSString*)appurl appId:(NSString *)appid;
  164. /**
  165. * @brief 申请上传文件 请求
  166. *
  167. * @param taskUid xx
  168. * @param filePath 传file name
  169. */
  170. + (NSString *)applyForUploadFileBy:(NSString*)taskUid filePath:(NSString *)filePath;
  171. /**
  172. * @brief 申请备份文件 请求
  173. *
  174. * @param taskUid taskUid
  175. * @param fileName 传file name
  176. */
  177. + (NSString *)applyForBackupsFileBy:(NSString*)taskUid withFileName:(NSString *)fileName withSavePath:(NSString *)savePath;
  178. /**
  179. * @brief 创建文件夹
  180. *
  181. * @param pathAndfolderName pathAndfolderName
  182. */
  183. + (NSString *)applyForCreateFolderwithFolderName:(NSString *)pathAndfolderName;
  184. /**
  185. * @brief 获取创建的文件夹(备份)
  186. *
  187. */
  188. + (NSString *)getCreateFolderList;
  189. /**
  190. * @brief 搜索文件
  191. *
  192. * @param fileType 文件类型 jpg 图片 audio 音频 video 视频 apk 应用 doc 文档 other 其他文件 dir 文件夹
  193. */
  194. + (NSString *)searchCouldPhoneFilewithType:(NSString *)fileType withPath:(NSString*)pathStr;
  195. /**
  196. * @brief 下载文件
  197. *
  198. * @param taskUid xx
  199. */
  200. + (NSString *)applyForDownloadFileBy:(NSString *)taskUid withFilePath:(NSString *)filePath withPosition:(long)position;
  201. /**
  202. * @brief 获取外挂磁盘接口
  203. *
  204. */
  205. + (NSString *)getExtraFilesList;
  206. /**
  207. * @brief 上传和备份文件完成
  208. *
  209. * @param taskUid xx
  210. *
  211. * @param fileName xx
  212. * @param isUploadType xx
  213. */
  214. + (NSString *)uploadOrBackupsDoneBy:(NSString *)taskUid withFileName:(NSString *)fileName
  215. withType:(BOOL)isUploadType;
  216. /**
  217. * @brief 下载缩略图
  218. *
  219. * @param taskUid xx
  220. */
  221. + (NSString *)applyForDownloadThumbnailFileBy:(NSString *)taskUid withFilePath:(NSString *)filePath withPosition:(long)position;
  222. /**
  223. * @brief 1.4.1 设置全屏推流
  224. *
  225. */
  226. + (NSString *)commondToSetFullScreenPhoneSize;
  227. /**
  228. * @brief 1.4.2 设置全屏推流
  229. *
  230. */
  231. + (CGSize)commondToSetFullScreenPhoneSizeBySize;
  232. @end
  233. NS_ASSUME_NONNULL_END