Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom type based on packed/unpacked lambdas #1

Open
wrozwad opened this issue Jun 6, 2019 · 1 comment
Open

Add custom type based on packed/unpacked lambdas #1

wrozwad opened this issue Jun 6, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@wrozwad
Copy link
Collaborator

wrozwad commented Jun 6, 2019

🇺🇸
As in title 😉 To add a possibility to save LocalDateTime as Long type

🇵🇱 by @micHar:
Chyba mam jeszcze jeden ficzer do dorobienia, mianowicie coś, co przyjmuje lambde do rozpakowania / spakowania obiektu do formy akceptowalnej przez prefsy. Np. wyobraź sobie, że masz do zapisania LocalDateTime ale w prefsach chcesz to zapisać jako Long po prostu. Użycie json byłoby bez sensu

@wrozwad wrozwad added the enhancement New feature or request label Jun 6, 2019
@micHar
Copy link
Contributor

micHar commented Jun 11, 2019

I wonder if it's not a matter of just extending the visibility of the SharedPreferences.prefsDelegate method. This way anyone could make his own delegate based on the basic logic around writing/reading/using default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants