uuid, without affecting other elements. Compared to clearElementCache, which clears the entire cache, this is the recommended way to release an element promptly once you’re done with it.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Recycle an Element object and release native Android cache on the native side.
uuid, without affecting other elements. Compared to clearElementCache, which clears the entire cache, this is the recommended way to release an element promptly once you’re done with it.
static recycleElement(uuid: string): void;
| Parameter | Type | Description |
|---|---|---|
uuid | string | Element unique identifier (see Element.uuid) |
import { PluginCommAPI } from 'sn-plugin-lib';
/**
* Recycle Element example.
*/
export async function exampleRecycleElement(uuid: string) {
PluginCommAPI.recycleElement(uuid);
}