PLVDocumentUploadModel

Objective-C

@interface PLVDocumentUploadModel : NSObject

Swift

class PLVDocumentUploadModel : NSObject

文档上传数据模型

  • 文件Id

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull fileId;

    Swift

    var fileId: String { get set }
  • 文件名

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull fileName;

    Swift

    var fileName: String { get set }
  • 文件路径

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull filePath;

    Swift

    var filePath: String { get set }
  • 文件转换类型:“common” 普通ppt , “animate”动画PPT

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull convertType;

    Swift

    var convertType: String { get set }
  • 文件上传进度

    Declaration

    Objective-C

    @property (nonatomic) float progress;

    Swift

    var progress: Float { get set }
  • 文件上传状态

    Declaration

    Objective-C

    @property (nonatomic) PLVDocumentUploadStatus status;

    Swift

    var status: PLVDocumentUploadStatus { get set }
  • 视频上传进度回调 block(该 block 运行在主线程,用于更新 UI)

    Declaration

    Objective-C

    @property (nonatomic, copy) PLVSUploadProgressBlock _Nullable uploadProgress;

    Swift

    var uploadProgress: PLVSUploadProgressBlock? { get set }
  • 设置 PLVDocumentUploadStatus 状态

    Declaration

    Objective-C

    - (void)setupUploadStatusWithStatusStirng:(nonnull NSString *)statusString;

    Swift

    func setupUploadStatus(withStatusStirng statusString: String)

    Parameters

    statusString

    状态字符串