Loyalty activitiesLast Updated - Platform 25.0 - SDK 20.0
The Loyalty Activities screen presents a list of activities (or campaigns) a user will be rewarded for.
Activities main view uses a
TransitioningContainerView to smoothly transition between states (loading, error, empty).
Whilst the screen is loading the views are replaced with dynamic loading skeletons. Buttons and text elements within cells are replaced with shimmering loading areas.
When no activities are found the view transitions to an empty view.
When the API returns an error the view transitions to an error view displaying the error and a retry button. Tapping retry restarts the loading process.
The activity view is a widget that controls its state.
It handles navigation, alerting and makes an API call to apply an activity.
If the activity is expired or already applied the activity cell is greyed out.
Redeem button is tapped loading indicator on the button is displayed to show the ongoing task.