The Alexa swipe to action responsive component (AlexaSwipeToAction) displays an item the user can swipe to perform an action. You can use this component in lists such as AlexaTextList to provide swipe actions on the list items. You can control the look of the item and the commands to run when the user swipes the item.
The source for a custom icon to show during the swipe. When actionIconType is AVG, set this property to the name of the graphic as defined in the graphics property or in an imported package. When actionIconType is image, provide the URL of the image to display.
You can use AlexaSwipeToAction within an AlexaTextList to display a scrolling list of items that the user can swipe. Within the text list, set defaults for the AlexaSwipeToAction items with the following AlexaTextList properties that correspond to AlexaSwipeToAction properties:
For example, the following APL document and data source shows an AlexaTextList that allows the user to swipe items. The onSwipeDone property is defined at the list-level rather than at the individual item level. When the user completes a swipe, the device sends the skill a UserEvent request with information about the list item that the user swiped.