express-embed-mobile-sdk-android-release

//sdk/com.adobe.express.embedsdk/ImageWorkflowContext/updateMobileToolbarOptions

updateMobileToolbarOptions


open suspend fun <T> updateMobileToolbarOptions(iconsList: List<T>): Boolean

Updates or adds custom icons to a workflow’s mobile toolbar. Icons with the same ID are updated in place, unmatched ids are added.

Each workflow accepts only its own toolbar-option type: MobileToolbarOption for the WebView-based workflows (e.g. EditImage), and NativeMobileToolbarOption for the native editor. Passing entries of any other type is a programming error and throws (see @throws) rather than failing silently. The base implementation is a no-op for workflows that do not support toolbar updates.

Return

true if icons were updated successfully, false otherwise (default: false).

Parameters

androidJvm

   
iconsList Toolbar options for this workflow (e.g. MobileToolbarOption or com.adobe.express.embedsdk.nativeeditor.domain.model.NativeMobileToolbarOption).

Throws

   
CCEverywhereError with ErrorCode.UNSUPPORTED_MOBILE_TOOLBAR_OPTION when iconsList contains entries whose type is not supported by the receiving workflow.