Please login to access all of the features of the Community Site.

ClearUserPreferences

Mobile4.0

Removes every user preference saved on the device. That includes the values saved with SetUserPreference and the preferences that blocks save for the person on the device. Use it for a reset action, such as a "Reset my preferences" button on a settings page.

The command takes no CommandParameter. Any value you pass is ignored.

Note

Only keys that start with user-preference- are removed. Other values saved with SetAppValue stay in place. Preferences are never sent to Rock, so this only affects the device the person is using.

Examples

<Button Text="Reset Preferences"
    StyleClass="btn, btn-secondary"
    Command="{Binding ClearUserPreferences}" />