IBM Worklight v5.0.5 > API reference > IBM Worklight client-side API > JavaScript client-side API

WL.Client.getUserPref(key)

Return the local value of a specified user preference.

Parameter Description
key The user preference key.


Return Value

The value of the user preference or NULL if there is no user preference with the specified key.


Exceptions

An exception is thrown when invalid parameters are passed to the function.


Parent JavaScript client-side API