FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

application-settings: access all keys · Issue #6210 · NativeScript/NativeScript · GitHub

application-settings: access all keys #6210

Description

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes: https://stackoverflow.com/questions/39582576/in-application-settings-iterate-the-key-values

Tell us about the problem

Right now there seems to be no way to get a representation of all key-value pairs that are currently stored in the application-settings. So it is not possible to say "delete all data for keys that starts with 'data-2018-08-21-...' " because we do not know which keys are stored and we like to iterate through all the keys to check which ones should be removed.

On native side, there seems to be a way to achieve this:
https://developer.android.com/reference/android/content/SharedPreferences#getAll()
https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc

Which platform(s) does your issue occur on?

Both

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL