恢复默认皮肤
This commit is contained in:
@@ -20,6 +20,8 @@ typedef NS_ENUM(NSUInteger, KBSkinSourceMode) {
|
||||
KBSkinSourceModeRemoteZip = 0,
|
||||
/// 本地 bundle Zip:从主 App bundle 中读取 zip_url 指定的 zip 文件并解压到 App Group
|
||||
KBSkinSourceModeLocalBundleZip = 1,
|
||||
/// 恢复到默认皮肤(忽略 skinJSON 中的资源字段)
|
||||
KBSkinSourceModeResetToDefault = 2,
|
||||
};
|
||||
|
||||
/// 皮肤下载与应用服务(仅主 App 使用)
|
||||
@@ -31,7 +33,7 @@ typedef NS_ENUM(NSUInteger, KBSkinSourceMode) {
|
||||
///
|
||||
/// @param skinJSON 与后端约定的皮肤结构(包含 id/name/background_image/hidden_keys/key_icons 等)
|
||||
/// @param presenting 用于弹出“键盘权限引导页”的控制器,可为 nil
|
||||
/// @param mode 资源来源模式:远程 / 本地 bundle
|
||||
/// @param mode 模式:远程 Zip、本地 bundle Zip,或恢复默认皮肤
|
||||
/// @param completion 应用完成回调(下载/写入全部结束后调用,success 表示是否成功)
|
||||
- (void)applySkinWithJSON:(NSDictionary *)skinJSON
|
||||
fromViewController:(nullable UIViewController *)presenting
|
||||
|
||||
Reference in New Issue
Block a user