Object
Access App’s User Preferences Object
Kind: global function
Returns: Object
- User Preferences Object
Since: v0.0.1
Example
// undefined
getUserPreferences() // -> {}
// defined
// App = {
// user: {
// attributes: {
// preferences: {language: "...", timezone: "...", ...}
// },
// ...
// }
// }
getUserPreferences() // -> returns {timezone: "...", language: "...", currency_name: "...", ...}
getUserPreferences('language') // -> returns language of the User.