App.Storage usage

Former Member
Former Member
I tried posting this question in another post, but kept getting errors so I'm starting a new thread.

Couple of questions. I'm using Application.Storage and it's working fine. When I get new data I just overwrite the existing value I stored in App.Storage. Is that the right process or should I be clearing or deleting Storage first? I guess I'm trying to figure out when you would want to clear or delete a value.

Second question, when my widget goes out of view do I need to do any garbage collection or does the system remove everything from memory for me (except for the app storage)?

Sorry for all the questions. I'm not a software developer, but I want to make sure my widget is optimized and doesn't waste any resources.