UserPreferencesAccess Interface

User preferences provide a way to get, store and delete preferences for an application at two different levels, iTwin and iModel.

The user preferences are separate from any iTwin or iModel configuration intended to be shared across multiple users. See Workspace for more details on shared configuration.

Note: Both the key and return type are intended to be abstract and allow any preferences to be stored. Based on this simple interface, the implementation of this interface can interpret the key as needed to store and retrieve the preferences.

Properties

Name Type Description
delete (arg: PreferenceKeyArg & ITwinIdArg & TokenArg) => Promise<void>    
get (arg: PreferenceKeyArg & ITwinIdArg & TokenArg) => Promise<any>    
save (arg: PreferenceArg & ITwinIdArg & TokenArg) => Promise<void>    

Defined in

Last Updated: 16 April, 2024