TVCClient.h 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // TVCClient.h
  3. // VCDemo
  4. //
  5. // Created by kennethmiao on 16/10/18.
  6. // Copyright © 2016年 kennethmiao. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "TVCCommon.h"
  10. @interface TVCClient : NSObject
  11. /**
  12. * 获取实例
  13. * @param config 配置参数
  14. */
  15. - (instancetype)initWithConfig:(TVCConfig *)config;
  16. /**
  17. * 文件上传
  18. * @param param 上传文件参数
  19. * @param result 上传结果回调
  20. * @param progress 上传进度回调
  21. */
  22. - (void)uploadVideo:(TVCUploadParam *)param result:(TVCResultBlock)result progress:(TVCProgressBlock)progress;
  23. /**
  24. * 取消上传
  25. * @return BOOL:成功 or 失败
  26. */
  27. - (BOOL)cancleUploadVideo;
  28. /**
  29. * 获取版本号
  30. * @return NSString 版本号
  31. */
  32. + (NSString *)getVersion;
  33. /*
  34. * 获取上报信息
  35. */
  36. -(NSDictionary *)getStatusInfo;
  37. @end