123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- //
- // RCCommandHelp.h
- // VclustersGemini
- //
- // Created by APPLE on 2019/11/7.
- // Copyright © 2019 APPLE. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface RCCommandHelp : NSObject
- + (NSString *)mutTapCommand500DownWithTouches:(NSArray *)touches
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- + (NSString *)mutTapCommand500UpWithTouches:(NSArray *)touches
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- + (NSString *)mutMoveCommand500UpWithTouches:(NSArray *)touches
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- + (NSString *)tapDownCommandTouches:(UITouch *)touch
- touchCount:(NSInteger)touchCount
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- + (NSString *)tapUpCommandTouches:(UITouch *)touch
- touchCount:(NSInteger)touchCount
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- + (NSString *)tapMoveCommandTouches:(UITouch *)touch
- touchCount:(NSInteger)touchCount
- showImageView:(UIImageView *)showImageView
- isLan:(BOOL)isLan;
- /**
- * @brief 关闭视频流指令
- *
- */
- + (NSString *)toStopControllerDevice500;
- /**
- * @brief 摇一摇
- *
- */
- + (NSString *)commandShake;
- /**
- * @brief 开启本地键盘透传
- *
- */
- + (NSString *)commandOpenLoaclKeyboad;
- /**
- * @brief 使用云手机键盘
- *
- */
- + (NSString *)commandCloseLoaclKeyboad;
- /**
- * @brief 关闭云手机键盘透传
- *
- */
- + (NSString *)commandClosePhoneKeyboad;
- /**
- * @brief 设置云手机默认帧率
- *
- */
- + (NSString *)commandSetFps;
- /**
- * @brief 发送透传文字给云手机/输入或者删除
- *
- * @param str 输入的内容 为nil时为删除
- *
- */
- + (NSString *)commandKeyboadInputStr:(NSString *_Nullable)str;
- /**
- * @brief 获取发给安卓手机的指令字符串
- *
- * @param code 指令类型 3:home 4:back 25:声音-键 24:声音+键 187:后台切换
- *
- */
- + (NSString *)commandBackOrHomeVolum500WithKeyCode:(int)code;
- /**
- * @brief 获取发给安卓手机设置分辨率的指令字符串
- *
- * @param type 200:极速 400:高速 600:标清 800:自动 1000:高清
- *
- */
- + (NSString *)commandResolution500WithType:(NSUInteger)type;
- /**
- * @brief 重置编码参数
- *
- * @param height 宽或者高 最大这
- *
- */
- + (NSString *)commandResolutionFactorWithHeight:(CGFloat)height;
- /**
- * @brief 云手机预览图指令
- */
- + (NSString *)commandGetScreenPicWithTaskUid:(NSString *)taskUid intervalTime:(int)intervalTime;
- /**
- * @brief 云手机截图指令
- */
- + (NSString *)commandCloudPhoneScreenshotWithTaskUid:(NSString *)taskUid;
- /**
- * @brief 云手机下载透传指令(云游戏下载透传到云手机)
- */
- + (NSString *)commandCloudPhoneDownloadWithTaskUid:(NSString *)taskUid apkUrl:(NSString *)apkUrl;
- /**
- * @brief 云游戏支付透传指令 (云游戏在本地支付完成透传到云手机)payResult 0:失败 1:成功
- */
- + (NSString *)commandCloudPhonePayWithTaskUid:(NSString *)taskUid payResult:(int)payResult;
- /**
- * @brief 剪切板接口
- *
- * @param str 要剪切的文本
- *
- */
- + (NSString *)commandCuttingWithContent:(NSString *)str;
- /**
- * @brief 记录推流开始时间
- *
- * @param deviceid 云手机id
- *
- */
- + (NSString *)commandConnectedWithDeviceId:(NSString *)deviceid;
- /**
- * @brief 控制权---查询控制权情况
- */
- + (NSString *)askControllcommandWithUseName:(NSString*)useName;
- /**
- * @brief 控制权---回复控制权
- *
- * @param useName 用户账号
- *
- * @param haveControl 是否有在控制 YES:有在控制 NO:没有在控制
- *
- */
- + (NSString *)faceBackControllcommandWithUseName:(NSString*)useName haveControl:(BOOL)haveControl;
- /**
- * @brief 控制权---拿回控制权
- *
- * @param useName 用户账号*
- */
- + (NSString *)getBackControllcommandWithUseName:(NSString*)useName;
- /**
- * @brief 获取板卡的分辨率
- */
- + (NSString *)getPhoneSizecommand;
- /**
- * @brief 设置板卡的分辨率
- *
- * @param width 宽度
- *
- * @param high 高度
- *
- * @param dpi 密度
- */
- + (NSString *)setPhoneSizecommandWithWidth:(NSInteger)width high:(NSInteger)high dpi:(NSInteger)dpi;
- /**
- * @brief 不支持wifi
- */
- + (NSString *)noSyncWifiBack;
- /**
- * @brief 向云手机发送下载app的指令
- *
- * @param appurl app下载链接 appid app标识符
- */
- + (NSString *)downLoadAppWithAppUrl:(NSString*)appurl appId:(NSString *)appid;
- /**
- * @brief 申请上传文件 请求
- *
- * @param taskUid xx
- * @param filePath 传file name
- */
- + (NSString *)applyForUploadFileBy:(NSString*)taskUid filePath:(NSString *)filePath;
- /**
- * @brief 申请备份文件 请求
- *
- * @param taskUid taskUid
- * @param fileName 传file name
- */
- + (NSString *)applyForBackupsFileBy:(NSString*)taskUid withFileName:(NSString *)fileName withSavePath:(NSString *)savePath;
- /**
- * @brief 创建文件夹
- *
- * @param pathAndfolderName pathAndfolderName
- */
- + (NSString *)applyForCreateFolderwithFolderName:(NSString *)pathAndfolderName;
- /**
- * @brief 获取创建的文件夹(备份)
- *
-
- */
- + (NSString *)getCreateFolderList;
- /**
- * @brief 搜索文件
- *
- * @param fileType 文件类型 jpg 图片 audio 音频 video 视频 apk 应用 doc 文档 other 其他文件 dir 文件夹
- */
- + (NSString *)searchCouldPhoneFilewithType:(NSString *)fileType withPath:(NSString*)pathStr;
- /**
- * @brief 下载文件
- *
- * @param taskUid xx
- */
- + (NSString *)applyForDownloadFileBy:(NSString *)taskUid withFilePath:(NSString *)filePath withPosition:(long)position;
- /**
- * @brief 获取外挂磁盘接口
- *
-
- */
- + (NSString *)getExtraFilesList;
- /**
- * @brief 上传和备份文件完成
- *
- * @param taskUid xx
- *
- * @param fileName xx
- * @param isUploadType xx
- */
- + (NSString *)uploadOrBackupsDoneBy:(NSString *)taskUid withFileName:(NSString *)fileName
- withType:(BOOL)isUploadType;
- /**
- * @brief 下载缩略图
- *
- * @param taskUid xx
- */
- + (NSString *)applyForDownloadThumbnailFileBy:(NSString *)taskUid withFilePath:(NSString *)filePath withPosition:(long)position;
- /**
- * @brief 1.4.1 设置全屏推流
- *
- */
- + (NSString *)commondToSetFullScreenPhoneSize;
- /**
- * @brief 1.4.2 设置全屏推流
- *
- */
- + (CGSize)commondToSetFullScreenPhoneSizeBySize;
- @end
- NS_ASSUME_NONNULL_END
|