PluginSpec
data class PluginSpec<V : PluginValue>(val create: (EditorSession) -> V, val provide: (ViewPlugin<V>) -> Extension? = null, val decorations: (V) -> DecorationSet? = null)
Specification for a ViewPlugin.
Parameters
create
Factory that builds the plugin value for a given session.
provide
Allows the plugin to contribute additional Extensions.
decorations
Extract a DecorationSet from the plugin value.
Constructors
Link copied to clipboard
constructor(create: (EditorSession) -> V, provide: (ViewPlugin<V>) -> Extension? = null, decorations: (V) -> DecorationSet? = null)