save

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

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.

@throws if any error occurs while saving.

Defined in

Last Updated: 17 May, 2024