Hi team, I need to be guided with glance. I'm crea...
# android
n
Hi team, I need to be guided with glance. I'm creating an application that allows you to record your phrases that motivate me the most, but I think it's not interesting to have the application to read a phrase that motivates us and that we like, so I decided to use glance to create a widget that displays a quote from the list endlessly after 3 seconds, and so far in the docs I can't find something that suits me to do that. For the application to be ready, it's just the widget part with glance that's causing me problems, and I'm at point zero. Could someone have a solution?
not kotlin but kotlin colored 5
m
When building with glance, did you separate the logic for the quote fetching? @Nathan79c i think you need a timer service for the 3 seconds rendering, also, youll need a state holder for the timing config
c
Image from iOS.jpg
n
Well, I haven't implemented the widget yet as I said in my message, I'm looking for the right approach, since by consulting the documentation I haven't yet found something that answers what I'm going to do but there is already a suspend getAllquotes() function in my repository that returns all the quotes from my database, which is the one I plan to use, but I'm still thinking about how to use it with glance and for the moment I don't have a solution
not kotlin but kotlin colored 2
đź§µ 1
c
Please don’t post answers to the main thread.