public protocol EditImageContext
Protocol for Edit Image workflow context operations. This context provides access to workflow-specific functionality for the Edit Image workflow, allowing clients to interact with the active editing session.
[hasUnsavedChanges()](#/s:9embed_sdk16EditImageContextP17hasUnsavedChangesSbyYaKF) Asynchronous
Checks if there are any unsaved changes in the current editing session.
Throws
An error if the operation fails
Swift
func hasUnsavedChanges() async throws -> Bool
true if there are unsaved changes, false otherwise
[getAsset(assetConfig:)](#/s:9embed_sdk16EditImageContextP8getAsset11assetConfigSayAA06OutputG0VGAA0gI0V_tYaKF) Asynchronous
Gets the published assets from the current editing session.
Throws
An error if the operation fails
Swift
func getAsset(assetConfig: AssetConfig) async throws -> [OutputAsset]
assetConfig | Configuration for asset retrieval including showProcessingDialog and markAssetExportedAfterEdit flags |
Array of [OutputAsset](/express-embed-mobile-sdk-ios-release/Structs/OutputAsset.html) objects representing the published content, or empty array if no assets have been published
[updateMobileToolbarOptions(iconsList:)](#/s:9embed_sdk16EditImageContextP26updateMobileToolbarOptions9iconsListSbSayAA0gH6OptionVG_tYaKF) Asynchronous
Updates or adds custom icons to the Edit Image interface. This function allows dynamic addition/update of icons during an active editing session. Icons with the same ID will be updated, new icons will be added.
Throws
An error if the operation fails
Swift
func updateMobileToolbarOptions(iconsList: [MobileToolbarOption]) async throws -> Bool
iconsList | Array of |
true if icons were updated successfully, false otherwise