Edit in GitHubLog an issue

ExecutionContext

This object is passed to the callback of core.executeAsModal for modality related APIs

Properties#

hostControl#

• hostControl: object

Use the methods in here to control Photoshop state

Type declaration#

NameTypeDescription
resumeHistory(suspensionID: number) => voidCall to resume history on a target document
suspendHistory(info: { historyStateInfo: HistoryStateInfo }) => Promise<number>Call to suspend history on a target document, returns the suspension ID which can be used for resumeHistory

isCancelled#

• isCancelled: boolean

True if user has cancelled the modal interaction.

User can cancel by hitting the Escape key, or by pressing the "Cancel" button in the progress bar.


onCancel#

• onCancel: void

If assigned a method, it will be called when user cancels the modal interaction.


reportProgress#

• reportProgress: void

Call this to customize the progress bar.

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.