Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.supernote.com/llms.txt

Use this file to discover all available pages before exploring further.

unregisterButton(id: number): Promise<boolean>;
Parameters
ParameterTypeDescription
idnumberButton ID (the id you used when registering the button)
Returns
  • Promise<boolean>: whether the button was unregistered successfully

Example

import { PluginManager } from 'sn-plugin-lib';

/**
 * Example: unregister a button.
 */
export async function exampleUnregisterButton() {
 const ok = await PluginManager.unregisterButton(1);
 return ok;
}