write Preferences
Writes the preferences to storage. Preference storage might be restricted by implementations to a maximum size. It should not be considered appropriate to store large amounts of data in the preferences.
Parameters
preferences
Map of the preferences.