Sadart Abukari
Sadart Abukari

Reputation: 170

Trigger Pull To Refresh

Any code sample on how to trigger Pull To Refresh in codenameone will be appreciated. Adding pull to refresh is simple but I have a use case where I need pull to refresh automatically done after form's post show.

Upvotes: 1

Views: 88

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

The InfiniteContainer does that implicitly but if you want to use the pull to refresh directly. Since pull to refresh accepts a Runnable you can just call its run() method on show.

Upvotes: 1

Related Questions