question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Provide Paging-Support

See original GitHub issue

When you have a lot of contacts, loading them all at once can take some time. For that reason, I would like to use paging. Therefore it would be really nice if a method could be provided which may look a bit like this:

    public fun fetchContactsPaged(
        predicate: ContactPredicate? = null,
        columnsToFetch: List<ContactColumn> = emptyList(),
        displayNameStyle: DisplayNameStyle = DisplayNameStyle.Primary,
        pageSize: Int,
        offset: Int,
    ): FetchRequest<List<Contact>>

allowing the caller to pass a page size (how many records should be fetched) and an offset (assuming the contacts are sorted by displayName).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fgublercommented, Jun 17, 2022

Thanks for the help 😃. Works like a charm, now.

1reaction
fgublercommented, Jun 14, 2022

Yes that is the case and makes sense. Yes it is for the contact-list screen, so I will avoid ContactColumn.Names and just use displayname, thanks 👍 I anyway load the details for the detail-screen later when I just have to do it for 1 contact. I just thought, I needed the Names from the beginning.

That should solve the problem: thanks a lot for the help 😃.

PS: in case you were wondering, my use-case is this: https://github.com/fgubler/PrivateContacts

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Android Paging Library support · Issue #282
It requires you to have a PagedList containing groupie Item s. This is not a great separation of concern. We want the DataSource...
Read more >
Feature request: Make Pagination clickable - WordPress.org
Thanks for your fast help. I updated the plugin to version 1.0.11 but can't see any option to activate clickable pagination. Or should...
Read more >
Feature Request for Paging - DevExpress Support
I would like to request that under the paging configuration that you add an option for "Full". By selecting this, you would get...
Read more >
Feature Request: Allow Site Admins to Edit Paging Queues
Feature Request : Allow Site Admins to Edit Paging Queues. We have Multi-Site enabled for our several branch locations and most have a...
Read more >
Feature Requests: How to Collect Them and Engage Users in ...
Then, we fill out a One Pager, a simple form that requires us to present all the information we have collected in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found