Giphy / giphy-android-sdk

Home of the GIPHY SDK Android example app, along with Android SDK documentation, issue tracking, & release notes.
https://developers.giphy.com/
Mozilla Public License 2.0
91 stars 40 forks source link

How to add recents tab in giphy java? #181

Closed sambhav2358 closed 2 years ago

sambhav2358 commented 2 years ago

I wanted to know that how can I get the recent gifs in giphy grid view.I was able to do it in GiphyDialogFragment. But I am unable to do it in GiphyGridView. Please help me and please provide the code in java. Thanks.

ALexanderLonsky commented 2 years ago

@sambhav2358 Please refer to this section.

Here is Java code to show Recents: binding.gifsGridView.setContent(GPHContent.Companion.getRecents());

sambhav2358 commented 2 years ago

Yes. I got that before itself. The thing is that I want to get recent gifs with searching. Is that possible?

ALexanderLonsky commented 2 years ago

The SDK does not provide this. Recently Picked are stored locally and the only info they have is their IDs.

sambhav2358 commented 2 years ago

Thanks. It would be great if you add it. That would be better for users. For example if the user uses hundreds of Gifs and wants search among the recent ones, it will not be possible. Also for users with slow network will be frustrated as the gif will take a long time to load. Hope you understand.