save Method

Saves the provided preference by the key within the provided level.

If both iTwinId and iModelId are provided, the key will be saved to both levels.

If the key already exists, in either level, the preference will be updated.

save(arg: PreferenceArg & ITwinIdArg & TokenArg): Promise<void>

throws if any error occurs while saving.

Parameter Type Description
arg PreferenceArg & ITwinIdArg & TokenArg  

Returns - Promise<void>

Defined in

Last Updated: 30 November, 2023