SMIFileAsset

Objective-C

@protocol SMIFileAsset

Swift

protocol FileAsset

A file asset.

  • File name.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSString *name;

    Swift

    var name: String? { get }
  • Unique identifier.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *_Nonnull identifier;

    Swift

    var identifier: String { get }
  • MIME type.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SMINetworkMimeTypes _Nonnull mimeType;

    Swift

    var mimeType: NetworkMimeTypes { get }
  • url

    URL for file asset.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSURL *url;

    Swift

    var url: URL? { get }
  • Parent entry.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *_Nonnull parentEntryId;

    Swift

    var parentEntryId: String { get }
  • File data.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSData *file;

    Swift

    var file: Data? { get }
  • Fetch file contents.

    Declaration

    Objective-C

    - (void)fetchContentWithCompletion:(nonnull SMIFileFetchCompletion)completion;

    Swift

    func fetchContent() async throws