|
@@ -30,6 +30,10 @@ NS_ASSUME_NONNULL_BEGIN
|
|
/// @discussion themeId may not the key for storage system, the interface layer should fetch the themeId-downloadURL pairs from server first, then call fetchThemeData method to start download contents. Must be settled before call fetchThemeData:completion:
|
|
/// @discussion themeId may not the key for storage system, the interface layer should fetch the themeId-downloadURL pairs from server first, then call fetchThemeData method to start download contents. Must be settled before call fetchThemeData:completion:
|
|
@property (nonatomic, copy, nullable) void (^downloadBlock)(NSString *themeId, NSString *writeToPath, void (^)(BOOL success, NSString *reason));
|
|
@property (nonatomic, copy, nullable) void (^downloadBlock)(NSString *themeId, NSString *writeToPath, void (^)(BOOL success, NSString *reason));
|
|
|
|
|
|
|
|
+/// block will called when theme engine loaded, should return a default theme identifier
|
|
|
|
+/// @discussion should be set on `+[NSObject load]`, the block will called after main framework prepared
|
|
|
|
+@property (nonatomic, copy, nullable) NSString * _Nullable (^defaultThemeBlock)(void);
|
|
|
|
+
|
|
/// Fetch specs from bundle, not mutable
|
|
/// Fetch specs from bundle, not mutable
|
|
- (NSArray<XCThemeSpecModel *> *)fetchBundleSpecs;
|
|
- (NSArray<XCThemeSpecModel *> *)fetchBundleSpecs;
|
|
|
|
|