store choice preference 服装消费商店偏好
Another common example is adding listeners to a preference store so you can update your UI when a preference changes.
还有一种常见的情形,是把侦听器添加到偏好存储以便您能够在偏好改变时更新ui。
The problem is that if you don't remove the preference store listener, you'll accumulate listeners because the preference store is typically closed only at shutdown.
问题在于如果您不删除偏好存储侦听器,您会导致侦听器累积,因为 一般而言,偏好存储只有在应用程序关闭时才会被关闭。
I've seen developers add a preference store listener when their view is created or when an action is created.
我曾见过有开发人员在创建视图或创建动作时添加偏好存储侦听器。
应用推荐