Callback function to handle activity changes.
typedef ActivityChanged = void Function( Activity prevActivity, Activity currActivity);