Skip to main content

Type Alias: PreviewServicePlugin

PreviewServicePlugin = object

A plugin that provides additional functionality to the preview service.

Methods​

dispose()​

dispose(isServiceShutdown): void

Called when the plugin is unregistered from the preview service. Use this to cleanup any resources that have been allocated. This will be called automatically when the preview service is shutdown, or when the plugin is unregistered.

Parameters​

isServiceShutdown​

boolean

True if the service is being shutdown, false if the plugin is being unregistered.

Returns​

void


initialize()​

initialize(previewService, context): void

Called when the plugin is first registered with the preview service.

Parameters​

previewService​

ThreeDPreviewService

A reference to the preview service.

context​

EngineContext

A reference to the engine context.

Returns​

void