SDK docs version: v0.1.25
Get sticker size.
static getStickerSize(path: string): Promise<APIResponse<Size>>;
path
string
APIResponse<Size>
result
Size
import { PluginCommAPI } from 'sn-plugin-lib'; /** * Example: get sticker size. */ export async function exampleGetStickerSize() { const stickerPath = '/storage/emulated/0/Note/stickers/demo.png'; const res = await PluginCommAPI.getStickerSize(stickerPath); if (!res.success) { throw new Error(res.error?.message ?? 'getStickerSize call failed'); } return res.result; }