Summary: Moar docz Reviewed By: danielbuechele Differential Revision: D8752565 fbshipit-source-id: d7e4392e00dc06b0ffbebce491d5244b4b31a34d
772 B
772 B
id, title
| id | title |
|---|---|
| shared-preferences-plugin | Shared Preferences |
Easily inspect and modify the data contained within your app's shared preferences.
Setup
Note: this plugin is only available for Android.
Android
import com.facebook.sonar.plugins.sharedpreferences.SharedPreferencesSonarPlugin;
client.addPlugin(
new SharedPreferencesSonarPlugin(context, "my_shared_preference_file"));
Usage
All changes to the given shared preference file will automatically appear in Sonar. You may also edit the values in Sonar and have them synced to your device. This can be done by clicking on the value of the specific key you wish to edit, editing the value and then pressing enter.
