AEPSource

@interface AEPSource : NSObject

* The resource of edit project

  • * The type of resource

    Declaration

    Objective-C

    @property (nonatomic, readonly) AEPSourceType type;
  • * The id of resource

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *sourceId;
  • * The path of resource

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *path;
  • URL

    * The url of resource

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *URL;
  • * The size of resource (KB)

    Declaration

    Objective-C

    @property (nonatomic, readonly) size_t size;
  • * is local

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isLocal;

Creator

  • * Create resource

    Declaration

    Objective-C

    + (AEPSource *)SourceWithType:(AEPSourceType)type
                         sourceId:(NSString *)sourceId
                              url:(NSString *)url
                             path:(NSString *)path;

    Parameters

    type

    the type of resoruce

    sourceId

    the id of resource

    url

    the url of resource

    path

    the local path of resource

  • * create resource obj with path

    Declaration

    Objective-C

    - (AEPSource *)createWithPath:(NSString *)path;

    Parameters

    path

    the local path of resource

  • * create resource obj with url

    Declaration

    Objective-C

    - (AEPSource *)createWithURL:(NSString *)URL;

    Parameters

    url

    the url of resource

  • * create resource obj with sourceId

    Declaration

    Objective-C

    - (AEPSource *)createWithSourceId:(NSString *)sourceId;

    Parameters

    sourceId

    the id of resoruce