AliyunDraftManager

@interface AliyunDraftManager : NSObject

本地草稿管理器

  • 唯一标识

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *identifier;
  • 草稿列表

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<AliyunDraft *> *draftList;
  • 事件回调

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunDraftManagerDelegate> delegate;
  • 初始化器

    Declaration

    Objective-C

    - (instancetype)initWithId:(NSString *)identifier;

    Parameters

    identifier

    唯一标识

  • 添加草稿

    Declaration

    Objective-C

    - (void)addDraft:(AliyunDraft *)draft;

    Parameters

    draft

    草稿

  • 删除草稿

    Declaration

    Objective-C

    - (AliyunDraft *)deleteDraft:(AliyunDraft *)draft;

    Parameters

    draft

    将要被删除的草稿

  • 复制草稿

    Declaration

    Objective-C

    - (AliyunDraft *)copyDraft:(AliyunDraft *)draft
                        toPath:(NSString *)taskPath
                     withTitle:(NSString *)title;

    Parameters

    draft

    将要被复制的草稿

    taskPath

    新草稿的路径

    title

    新草稿的标题

Cloud