Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Widgets

Discusses how you can use widgets in the Configured Commerce Mobile SDK to configure your content.

Widgets are components you can configure and stylize using the CMS. The app converts data returned from a request into a Widget using either the MobileSpireContentService or the MobileContentService (legacy service). Both services send a pageKey that tells the server what page is being requested.

Once the app has the page contents, the ContentConfigurationService attempts to convert the response into a page, which is a collection of idgets.

If you want to edit an existing widget, you should create a new one. Instead of inheriting the WidgetEntity, extend off the widget you intend to modify. Optimizely recommends this approach because if there are any updates to the Mobile SDK widgets, it can be hard to pull in these updates without conflicts. If you extend off the widget instead, you eliminate this risk because you only need to update your modified widget.