closePlugin

closePlugin

closePlugin

Close and terminate the plugin.

await framer.closePlugin("Synchronization successful", {
    variant: "success",
})

Parameters

  • message?: string — An optional message to show in the toast that will be shown.

  • options?: ClosePluginOptions

    • variant?: NotificationVariant — What variant of toast to show.

Returns

  • Promise<void>