Edit in GitHubLog an issue

ExecutionContext

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

NameTypeMin VersionDescription
hostControl
object
23.0
Use the methods in here to control Photoshop state.
hostControl.resumeHistory
(`params`: ResumeHistorySuspensionOptions, `commit?`: boolean) => Promise<void\>
23.0
Call to resume history on a target document. commit (optional): if false, the current modified document state is dropped, and the document returns to the state when `suspendHistory` was invoked.
hostControl.suspendHistory
(`params`: HistoryStateInfo) => Promise<HistorySuspension\>
23.0
Call to suspend history on a target document, returns the suspension ID which can be used for resumeHistory.
isCancelled
boolean
23.0
True if user has cancelled the modal interaction.
onCancel
void
23.0
If assigned a method, it will be called when user cancels the modal interaction.
reportProgress
void
23.0
Call this to customize the progress bar.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.