Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Latest commit

 

History

History
51 lines (34 loc) · 880 Bytes

File metadata and controls

51 lines (34 loc) · 880 Bytes

Settings

These methods are accessible through profile.settings() and wallet.settings() which expose a SettingRepository instance.

Get a list of all settings with key and value

profile.settings().all();

Get a list of all setting keys

profile.settings().keys();

Get a list of all setting values

profile.settings().values();

Get the value for the given key

profile.settings().get("theme", "light");

Set the value for the given key

profile.settings().set("theme", "dark");

Check if a setting for the given key exists

profile.settings().has("theme");

Forget the value for the given key

profile.settings().forget("theme");

Forget all settings (Use with caution!)

profile.settings().flush();