SMIUnknownAsset

Objective-C

@protocol SMIUnknownAsset

Swift

protocol UnknownAsset

Describes an unknown asset.

  • Identifier for this asset.

    Declaration

    Objective-C

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

    Swift

    var identifier: String { get }
  • url

    URL for this asset.

    Declaration

    Objective-C

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

    Swift

    var url: URL? { get }
  • File contents for this asset.

    Declaration

    Objective-C

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

    Swift

    var file: Data? { get }
  • Fetch the contents of this asset.

    Declaration

    Objective-C

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

    Swift

    func fetchContent() async throws