介绍
调用 findCachePath 后,可获取当前卡片 ID 下的所有卡片缓存信息。该路径下的所有子文件夹,为卡片在本地的版本。例如 cachePath/1_0_0_0 为 1.0.0.0 版本,注意需要自己将 _ 替换为 .。
接口
Android
MPCube.findCachePath(卡片id)iOS
/**
获取模版id对应的缓存路径,没有缓存为nil
@param templateId 模版id
*/
- (nullable NSString *)findCachePath:(NSString *)templateId;
使用示例
NSString *cachePath = [cubeEngine findCachePath:@"卡片id"];鸿蒙
MPCube.findCachePath(卡片id)该文章对您有帮助吗?