Interface IAbstractPreviewApplication
Common base interface for managing standalone applications that are used for previews.
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface IAbstractPreviewApplication : IAbstractPreviewController
Methods
Launch()
The host application calls this to launch the preview applications.
Declaration
void Launch()
NotifyCanClose()
The host application may call this when the external preview is no longer expected to be needed, e.g. when the file that is being worked on is closed or when a new preview is about to be launched.
Declaration
void NotifyCanClose()
Remarks
The implementation may attempt to close the application and/or preview file at this point, or it may ignore this call and leave it up to the user to close the application manually.
Events
PreviewClosed
The implementation may raise this event to notify the host application when the standalone application no longer needs to be tracked, e.g. when the file that is being previewed is closed, or when the preview application is closed.
Declaration
event EventHandler<PreviewClosedEventArgs> PreviewClosed
Event Type
Type | Description |
---|---|
System.EventHandler<PreviewClosedEventArgs> |
Remarks
This signals to the host application that temp files, etc. can be cleaned up.