EditorEventHandler

An interface for sending editor events that can be captured in ly.img.editor.EditorConfiguration.onEvent.

Functions

Link copied to clipboard
abstract fun send(event: EditorEvent)

A function for sending EditorEvents. If the event is an instance of EditorEvent.Internal then it will be handled by the editor automatically. All other events are forwarded to ly.img.editor.EditorConfiguration.onEvent.

Link copied to clipboard

A special function for canceling the export job if it is running.

Link copied to clipboard
open fun sendCloseEditorEvent(throwable: Throwable? = null)

A special function for closing the editor. This force closes the editor without entering the ly.img.editor.EngineConfiguration.onClose callback.