nmaves
8 years agoVisitor
Dynamically update TargetList / TargetGroup
I have a TargetList that works great. The only issue I am seeing is when I need to refresh the content of that TargetList.
Bellow is how I am updating the content. Here is the use case that I am seeing. Our list is ordered from most recently played to least recently played. Let's say I have 4 titles in the list. I have a timer that runs every 30 seconds to pull the list of titles from our web service and update the TargetList. The user now plays the 4th title in the list. When they come back to the screen with the TargetList on it it has refreshed but the UI is showing that title twice in the target list. It does not appear to refresh properly. It might have to do with some of the tiles being outside of the focus set but I can't be sure.
Is there a proper way to update the content of a TargetList / TargetGroup ?
Bellow is how I am updating the content. Here is the use case that I am seeing. Our list is ordered from most recently played to least recently played. Let's say I have 4 titles in the list. I have a timer that runs every 30 seconds to pull the list of titles from our web service and update the TargetList. The user now plays the 4th title in the list. When they come back to the screen with the TargetList on it it has refreshed but the UI is showing that title twice in the target list. It does not appear to refresh properly. It might have to do with some of the tiles being outside of the focus set but I can't be sure.
Is there a proper way to update the content of a TargetList / TargetGroup ?
m.titlesList.content = m.borrowedTitlesTask.content