Query local card information

Updated at:

Introduction

Call findCachePath to retrieve all cache information for the current card ID. The subfolders in this path are local versions of the card. For example, the cachePath/1_0_0_0 subfolder corresponds to version 1.0.0.0. The version number is determined by replacing the underscores (_) in the folder name with periods (.).

API

Android

MPCube.findCachePath(cardId)

iOS

/**
 Gets the cache path for the template ID. Returns nil if no cache exists.
 @param templateId The template ID.
 */
- (nullable NSString *)findCachePath:(NSString *)templateId;

Example
NSString *cachePath = [cubeEngine findCachePath:@"cardId"];

HarmonyOS

MPCube.findCachePath(cardId)