adorsys / secure-storage-android

Store strings & credentials securely encrypted on your device
Apache License 2.0
367 stars 58 forks source link

What is `defValue`? #26

Closed spookyuser closed 6 years ago

spookyuser commented 6 years ago

When trying to retrieve a String with SecurePreferences.getStringValue("KEY") an error is thrown because defValue is not provided. Is this supposed to be an optional parameter, because it isn't listed in the readme.

drilonrecica commented 6 years ago

Hi @spookyUnknownUser

We will look into this ASAP.

We'll keep you posted.

luckyhandler commented 6 years ago

@spookyUnknownUser, I created a pull request with an update to the readme. The def value is necessary as it gives you the full control over what to get back from the library if the value is not in the storage. As soon as #27 is merged I will close this issue. Hopefully, this helps you!

luckyhandler commented 6 years ago

27 merged into master

spookyuser commented 6 years ago

Perfect thank you.