UNPKG

790 Btext/x-cView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import <React/RCTBridge.h>
9#import <React/RCTBridgeModule.h>
10#import <React/RCTURLRequestHandler.h>
11
12@interface RCTBlobManager : NSObject <RCTBridgeModule, RCTURLRequestHandler>
13
14- (NSString *)store:(NSData *)data;
15
16- (void)store:(NSData *)data withId:(NSString *)blobId;
17
18- (NSData *)resolve:(NSDictionary<NSString *, id> *)blob;
19
20- (NSData *)resolve:(NSString *)blobId offset:(NSInteger)offset size:(NSInteger)size;
21
22- (NSData *)resolveURL:(NSURL *)url;
23
24- (void)remove:(NSString *)blobId;
25
26- (void)createFromParts:(NSArray<NSDictionary<NSString *, id> *> *)parts withId:(NSString *)blobId;
27
28@end