loadPluginState

abstract fun loadPluginState(instanceId: Int, filepath: String, callback: (PluginStateResult) -> Unit)

Plug-in state to and from a file. Prefer these over the *Sync variants: a plug-in's state can be slow to produce, and on Android reading it from the main thread can deadlock.