Saving a Custom Type With ObscuredPrefs – Scout Saving a Custom Type With ObscuredPrefs – Scout

Saving a Custom Type With ObscuredPrefs

To save a custom type to ObscuredPrefs, simply create a function that can turn the object into a string. Once you have this function, create a getter and setter function in ObscuredPrefs using a pre-existing getter and setter function as guidance.

All objects should be converted to a string prior to encryption in the aforementioned setter.

Powered by BetterDocs