--- Title: User Preference Cloud Service Added: v3.4.0 Status: Experimental Last reviewed: 2019-08-06 --- # [User Preference Cloud Service](../../../lib/process-services-cloud/src/lib/services/user-preference-cloud.service.ts "Defined in user-preference-cloud.service.ts") Manages user preferences. ## Class members ### Methods * **createPreference**(appName: `string`, key: `string`, newPreference: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Creates user preference. * *appName:* `string` - Name of the target app * *key:* `string` - Key of the target preference * *newPreference:* `any` - * **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Observable of created user preferences * **deletePreference**(appName: `string`, key: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Deletes user preference by given preference key. * *appName:* `string` - Name of the target app * *key:* `string` - Key of the target preference * **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Observable of delete operation status * **getBasePath**(appName: `string`): `string`
* *appName:* `string` - * **Returns** `string` - * **getPreferenceByKey**(appName: `string`, key: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Gets user preference. * *appName:* `string` - Name of the target app * *key:* `string` - Key of the target preference * **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Observable of user preference * **getPreferences**(appName: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Gets user preferences * *appName:* `string` - Name of the target app * **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - List of user preferences * **updatePreference**(appName: `string`, key: `string`, updatedPreference: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Updates user preference. * *appName:* `string` - Name of the target app * *key:* `string` - Key of the target preference * *updatedPreference:* `any` - Details of updated preference * **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Observable of updated user preferences ## See also * [Local preference Cloud Service](local-preference-cloud.service.md)