Home | Platform SDK

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();

2020 © ARK.io | All rights reserved | An ARK.io Product