uuid 对应的这一个 Element 缓存,不影响其他元素,相比会清空全部缓存的 clearElementCache,日常用完某个元素后更推荐用它及时释放。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
回收 Element 对象并释放原生Android端的缓存。
uuid 对应的这一个 Element 缓存,不影响其他元素,相比会清空全部缓存的 clearElementCache,日常用完某个元素后更推荐用它及时释放。
static recycleElement(uuid: string): void;
| 参数 | 类型 | 说明 |
|---|---|---|
uuid | string | Element 的唯一标志(见 Element.uuid) |
import { PluginCommAPI } from 'sn-plugin-lib';
/**
* 回收 Element 的示例。
*/
export async function exampleRecycleElement(uuid: string) {
PluginCommAPI.recycleElement(uuid);
}